Skip to content

Commit 0469be1

Browse files
committed
Auto merge of #26876 - liigo:patch-3, r=Gankro
2 parents 184267c + 6a9f4db commit 0469be1

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
@@ -766,6 +766,9 @@ Example:
766766
```
767767
type X = u32; // this compiles
768768
```
769+
770+
Note that type parameters for enum-variant constructors go after the variant,
771+
not after the enum (Option::None::<u32>, not Option::<u32>::None).
769772
"##,
770773

771774
E0110: r##"

0 commit comments

Comments
 (0)