|
1 | 1 | error[E0433]: failed to resolve: use of undeclared crate or module `vec`
|
2 |
| - --> $DIR/112590-2.rs:3:14 |
| 2 | + --> $DIR/112590-2.rs:4:15 |
3 | 3 | |
|
4 |
| -LL | type B = vec::Vec::<u8>; |
5 |
| - | ^^^ use of undeclared crate or module `vec` |
| 4 | +LL | type _B = vec::Vec::<u8>; |
| 5 | + | ^^^ use of undeclared crate or module `vec` |
6 | 6 | |
|
7 | 7 | help: consider importing this module
|
8 | 8 | |
|
9 | 9 | LL + use std::vec;
|
10 | 10 | |
|
11 | 11 |
|
12 | 12 | error[E0433]: failed to resolve: could not find `sync_error` in `std`
|
13 |
| - --> $DIR/112590-2.rs:4:19 |
| 13 | + --> $DIR/112590-2.rs:5:19 |
14 | 14 | |
|
15 |
| -LL | let _t = std::sync_error::atomic::AtomicBool; |
| 15 | +LL | let _t = std::sync_error::atomic::AtomicBool::new(true); |
16 | 16 | | ^^^^^^^^^^ could not find `sync_error` in `std`
|
17 | 17 | |
|
18 |
| -help: consider importing this module |
| 18 | +help: consider importing this struct |
19 | 19 | |
|
20 |
| -LL + use std::sync::atomic; |
| 20 | +LL + use std::sync::atomic::AtomicBool; |
21 | 21 | |
|
22 |
| -help: if you import `atomic`, refer to it directly |
| 22 | +help: if you import `AtomicBool`, refer to it directly |
23 | 23 | |
|
24 |
| -LL - let _t = std::sync_error::atomic::AtomicBool; |
25 |
| -LL + let _t = atomic::AtomicBool; |
| 24 | +LL - let _t = std::sync_error::atomic::AtomicBool::new(true); |
| 25 | +LL + let _t = AtomicBool::new(true); |
26 | 26 | |
|
27 | 27 |
|
28 | 28 | error[E0433]: failed to resolve: use of undeclared crate or module `vec`
|
29 |
| - --> $DIR/112590-2.rs:2:14 |
| 29 | + --> $DIR/112590-2.rs:3:24 |
30 | 30 | |
|
31 |
| -LL | let _t = vec::new(); |
32 |
| - | ^^^ |
33 |
| - | | |
34 |
| - | use of undeclared crate or module `vec` |
35 |
| - | help: a struct with a similar name exists (notice the capitalization): `Vec` |
| 31 | +LL | let _t: Vec<i32> = vec::new(); |
| 32 | + | ^^^ |
| 33 | + | | |
| 34 | + | use of undeclared crate or module `vec` |
| 35 | + | help: a struct with a similar name exists (notice the capitalization): `Vec` |
36 | 36 |
|
37 | 37 | error: aborting due to 3 previous errors
|
38 | 38 |
|
|
0 commit comments