1 error[E0599]: no method named `foobar` found for type `u32` in the current scope
2 --> $DIR/trait-import-suggestions.rs:22:11
4 LL | fn foobar(&self) { }
5 | ------ the method is available for `u32` here
8 | ^^^^^^ method not found in `u32`
10 = help: items from traits can only be used if the trait is in scope
11 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
13 LL + use crate::foo::foobar::Foobar;
16 error[E0599]: no method named `bar` found for type `u32` in the current scope
17 --> $DIR/trait-import-suggestions.rs:28:7
19 LL | fn bar(&self) { }
20 | --- the method is available for `u32` here
23 | ^^^ method not found in `u32`
25 = help: items from traits can only be used if the trait is in scope
26 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
28 LL + use crate::foo::Bar;
31 error[E0599]: no method named `baz` found for type `u32` in the current scope
32 --> $DIR/trait-import-suggestions.rs:29:7
35 | ^^^ method not found in `u32`
37 error[E0599]: no function or associated item named `from_str` found for type `u32` in the current scope
38 --> $DIR/trait-import-suggestions.rs:30:18
40 LL | let y = u32::from_str("33");
41 | ^^^^^^^^ function or associated item not found in `u32`
43 = help: items from traits can only be used if the trait is in scope
44 help: the following trait is implemented but not in scope; perhaps add a `use` for it:
46 LL + use std::str::FromStr;
48 help: there is an associated function with a similar name
50 LL | let y = u32::from_str_radix("33");
53 error: aborting due to 4 previous errors
55 For more information about this error, try `rustc --explain E0599`.