File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#![ allow( non_snake_case) ]
12
12
13
+ // Error messages for EXXXX errors.
14
+ // Each message should start and end with a new line, and be wrapped to 80 characters.
15
+ // In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.
16
+ register_long_diagnostics ! {
17
+
18
+ E0317 : r##"
19
+ User-defined types or type parameters cannot shadow the primitive types.
20
+ This error indicates you tried to define a type, struct or enum with the same
21
+ name as an existing primitive type, and is therefore invalid.
22
+
23
+ See the Types section of the reference for more information about the primitive
24
+ types:
25
+
26
+ http://doc.rust-lang.org/nightly/reference.html#types
27
+ "##
28
+
29
+ }
30
+
13
31
register_diagnostics ! {
14
32
E0154 ,
15
33
E0157 ,
@@ -24,7 +42,6 @@ register_diagnostics! {
24
42
E0258 , // import conflicts with existing submodule
25
43
E0259 , // an extern crate has already been imported into this module
26
44
E0260 , // name conflicts with an external crate that has been imported into this module
27
- E0317 , // user-defined types or type parameters cannot shadow the primitive types
28
45
E0364 , // item is private
29
46
E0365 // item is private
30
47
}
You can’t perform that action at this time.
0 commit comments