]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/trait-import-suggestions.stderr
d5d996e27eeb4b03b5d6b8d65a2a278aabc00abd
[rust.git] / src / test / ui / rust-2018 / trait-import-suggestions.stderr
1 error[E0599]: no method named `foobar` found for type `u32` in the current scope
2   --> $DIR/trait-import-suggestions.rs:32:11
3    |
4 LL |         x.foobar(); //~ ERROR no method named `foobar`
5    |           ^^^^^^
6    |
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;`
10
11 error[E0599]: no method named `bar` found for type `u32` in the current scope
12   --> $DIR/trait-import-suggestions.rs:38:7
13    |
14 LL |     x.bar(); //~ ERROR no method named `bar`
15    |       ^^^
16    |
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:
19    |
20 LL | use crate::foo::Bar;
21    |
22
23 error[E0599]: no method named `baz` found for type `u32` in the current scope
24   --> $DIR/trait-import-suggestions.rs:39:7
25    |
26 LL |     x.baz(); //~ ERROR no method named `baz`
27    |       ^^^
28
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
31    |
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`
34    |
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:
37    |
38 LL | use std::str::FromStr;
39    |
40
41 error: aborting due to 4 previous errors
42
43 For more information about this error, try `rustc --explain E0599`.