From 6a9f4dbc611d0e35e5513bf6eef8101142906aee Mon Sep 17 00:00:00 2001 From: Liigo Zhuang Date: Wed, 8 Jul 2015 13:07:50 +0800 Subject: [PATCH] update diagnostics E0109 about None:: --- src/librustc/diagnostics.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 3dbc80d352d1..e2ce0fe34ec6 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -375,6 +375,9 @@ Example: ``` type X = u32; // ok! ``` + +Note that type parameters for enum-variant constructors go after the variant, +not after the enum (Option::None::, not Option::::None). "##, E0110: r##"