reword "possible candidate" import suggestion
This commit is contained in:
parent
97f3eeec82
commit
9f88d75710
46 changed files with 112 additions and 106 deletions
|
|
@ -24,7 +24,7 @@ error[E0573]: expected type, found variant `Result`
|
|||
LL | fn new() -> Result<foo::MyEnum, String> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
|
||||
|
|
||||
help: possible better candidates are found in other modules, you can import them into scope
|
||||
help: consider importing one of these items instead
|
||||
|
|
||||
LL | use std::fmt::Result;
|
||||
|
|
||||
|
|
@ -42,7 +42,7 @@ error[E0573]: expected type, found variant `Result`
|
|||
LL | fn new() -> Result<foo::MyEnum, String> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a type
|
||||
|
|
||||
help: possible better candidates are found in other modules, you can import them into scope
|
||||
help: consider importing one of these items instead
|
||||
|
|
||||
LL | use std::fmt::Result;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in thi
|
|||
LL | Apple(5)
|
||||
| ^^^^^ not found in this scope
|
||||
|
|
||||
help: possible candidate is found in another module, you can import it into scope
|
||||
help: consider importing this tuple variant
|
||||
|
|
||||
LL | use Fruit::Apple;
|
||||
|
|
||||
|
|
@ -35,7 +35,7 @@ error[E0425]: cannot find function, tuple struct or tuple variant `Apple` in thi
|
|||
LL | Apple(5)
|
||||
| ^^^^^ not found in this scope
|
||||
|
|
||||
help: possible candidate is found in another module, you can import it into scope
|
||||
help: consider importing this tuple variant
|
||||
|
|
||||
LL | use Fruit::Apple;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0404]: expected trait, found derive macro `Hash`
|
|||
LL | struct Foo<T: ?Hash> { }
|
||||
| ^^^^ not a trait
|
||||
|
|
||||
help: possible better candidate is found in another module, you can import it into scope
|
||||
help: consider importing this trait instead
|
||||
|
|
||||
LL | use std::hash::Hash;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ error[E0423]: expected function, found module `baz`
|
|||
LL | baz();
|
||||
| ^^^ not a function
|
||||
|
|
||||
help: possible better candidate is found in another module, you can import it into scope
|
||||
help: consider importing this function instead
|
||||
|
|
||||
LL | use bar::baz;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ error[E0425]: cannot find function, tuple struct or tuple variant `B` in this sc
|
|||
LL | B(());
|
||||
| ^ not found in this scope
|
||||
|
|
||||
help: possible candidate is found in another module, you can import it into scope
|
||||
help: consider importing this tuple struct
|
||||
|
|
||||
LL | use foo::B;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0412]: cannot find type `Bar` in this scope
|
|||
LL | fn sub() -> Bar { 1 }
|
||||
| ^^^ not found in this scope
|
||||
|
|
||||
help: possible candidate is found in another module, you can import it into scope
|
||||
help: consider importing this type alias
|
||||
|
|
||||
LL | use a::b::Bar;
|
||||
|
|
||||
|
|
@ -15,7 +15,7 @@ error[E0423]: expected function, found module `foo`
|
|||
LL | foo();
|
||||
| ^^^ not a function
|
||||
|
|
||||
help: possible better candidates are found in other modules, you can import them into scope
|
||||
help: consider importing one of these items instead
|
||||
|
|
||||
LL | use foo::foo;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0425]: cannot find function `foo` in this scope
|
|||
LL | fn sub() -> isize { foo(); 1 }
|
||||
| ^^^ not found in this scope
|
||||
|
|
||||
help: possible candidates are found in other modules, you can import them into scope
|
||||
help: consider importing one of these items
|
||||
|
|
||||
LL | use foo::foo;
|
||||
|
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0425]: cannot find value `LOG10_2` in module `std::f64`
|
|||
LL | const M: usize = (f64::from(N) * std::f64::LOG10_2) as usize;
|
||||
| ^^^^^^^ not found in `std::f64`
|
||||
|
|
||||
help: possible candidates are found in other modules, you can import them into scope
|
||||
help: consider importing one of these items
|
||||
|
|
||||
LL | use std::f32::consts::LOG10_2;
|
||||
|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue