Better diagnostic for use Self::..
This commit is contained in:
parent
b652d9a0fd
commit
eaf47a30cb
2 changed files with 12 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ error[E0432]: unresolved import `Self`
|
|||
--> $DIR/use-self-type.rs:6:13
|
||||
|
|
||||
LL | use Self::f;
|
||||
| ^^^^ `Self` is only available in impls, traits, and type definitions
|
||||
| ^^^^ `Self` cannot be used in imports
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue