]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/trait-import-suggestions.stderr
Auto merge of #54734 - pawroman:fix_range_borrowing_suggestion, r=varkor
[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();
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();
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();
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");
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`.