1 error[E0599]: no method named `foobar` found for type `u32` in the current scope
2 --> $DIR/trait-import-suggestions.rs:32:11
4 LL | x.foobar(); //~ ERROR no method named `foobar`
7 = help: items from traits can only be used if the trait is in scope
8 = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
9 `use crate::foo::foobar::Foobar;`
11 error[E0599]: no method named `bar` found for type `u32` in the current scope
12 --> $DIR/trait-import-suggestions.rs:38:7
14 LL | x.bar(); //~ ERROR no method named `bar`
17 = help: items from traits can only be used if the trait is in scope
18 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
20 LL | use crate::foo::Bar;
23 error[E0599]: no method named `baz` found for type `u32` in the current scope
24 --> $DIR/trait-import-suggestions.rs:39:7
26 LL | x.baz(); //~ ERROR no method named `baz`
29 error[E0599]: no function or associated item named `from_str` found for type `u32` in the current scope
30 --> $DIR/trait-import-suggestions.rs:40:13
32 LL | let y = u32::from_str("33"); //~ ERROR no function or associated item named `from_str`
33 | ^^^^^^^^^^^^^ function or associated item not found in `u32`
35 = help: items from traits can only be used if the trait is in scope
36 help: the following trait is implemented but not in scope, perhaps add a `use` for it:
38 LL | use std::str::FromStr;
41 error: aborting due to 4 previous errors
43 For more information about this error, try `rustc --explain E0599`.