]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/use_instead_of_import.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / did_you_mean / use_instead_of_import.stderr
1 error: expected item, found `import`
2   --> $DIR/use_instead_of_import.rs:3:1
3    |
4 LL | import std::{
5    | ^^^^^^ help: items are imported using the `use` keyword
6
7 error: expected item, found `require`
8   --> $DIR/use_instead_of_import.rs:9:1
9    |
10 LL | require std::time::Duration;
11    | ^^^^^^^ help: items are imported using the `use` keyword
12
13 error: expected item, found `include`
14   --> $DIR/use_instead_of_import.rs:12:1
15    |
16 LL | include std::time::Instant;
17    | ^^^^^^^ help: items are imported using the `use` keyword
18
19 error: expected item, found `using`
20   --> $DIR/use_instead_of_import.rs:15:5
21    |
22 LL | pub using std::io;
23    |     ^^^^^ help: items are imported using the `use` keyword
24
25 error: aborting due to 4 previous errors
26