File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,23 @@ mod bar {
93
93
```
94
94
"## ,
95
95
96
+ E0253 : r##"
97
+ Attempt was made to import an unimportable value. This can happen when
98
+ trying to import a method from a trait. An example of this error:
99
+
100
+ ```
101
+ mod foo {
102
+ pub trait MyTrait {
103
+ fn do_something();
104
+ }
105
+ }
106
+ use foo::MyTrait::do_something;
107
+ ```
108
+
109
+ In general, it's not legal to directly import methods belonging to a
110
+ trait or concrete type.
111
+ "## ,
112
+
96
113
E0255 : r##"
97
114
You can't import a value whose name is the same as another value defined in the
98
115
module.
@@ -262,7 +279,6 @@ http://doc.rust-lang.org/reference.html#use-declarations
262
279
register_diagnostics ! {
263
280
E0153 , // called no where
264
281
E0157 , // called from no where
265
- E0253 , // not directly importable
266
282
E0254 , // import conflicts with imported crate in this module
267
283
E0257 ,
268
284
E0258 ,
You can’t perform that action at this time.
0 commit comments