Skip to content

Commit 6a9f4db

Browse files
committed
update diagnostics E0109 about None::<T>
1 parent 67256df commit 6a9f4db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc/diagnostics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ Example:
375375
```
376376
type X = u32; // ok!
377377
```
378+
379+
Note that type parameters for enum-variant constructors go after the variant,
380+
not after the enum (Option::None::<u32>, not Option::<u32>::None).
378381
"##,
379382

380383
E0110: r##"

0 commit comments

Comments
 (0)