Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion text/3786-const-nonzero-ergonomics.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ foo(123 - 1); // Error - coercion not applied for expressions.
const MAGIC_VALUE: NonZero<i8> = 123; // OK - coercion logic is same as when calling a fn.

let i: i8 = 123;
foo(i); // Error - the coercion only applies to literals, not for values in general.
foo(i); // Error - the coercion only applies to literals and `i` is not a literal.
```

# Drawbacks
Expand Down