summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/112590-2.stderr
blob: 0db20249d27f5b3c1707b31ff51ca0212e528b6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
error[E0433]: failed to resolve: could not find `baf` in `foo`
  --> $DIR/112590-2.rs:12:39
   |
LL |         let _: Vec<i32> = super::foo::baf::baz::MyVec::new();
   |                                       ^^^ could not find `baf` in `foo`
   |
help: consider importing this struct through its public re-export
   |
LL +     use foo::bar::baz::MyVec;
   |
help: if you import `MyVec`, refer to it directly
   |
LL -         let _: Vec<i32> = super::foo::baf::baz::MyVec::new();
LL +         let _: Vec<i32> = MyVec::new();
   |

error[E0433]: failed to resolve: use of undeclared crate or module `fox`
  --> $DIR/112590-2.rs:18:27
   |
LL |         let _: Vec<i32> = fox::bar::baz::MyVec::new();
   |                           ^^^ use of undeclared crate or module `fox`
   |
help: consider importing this struct through its public re-export
   |
LL +     use foo::bar::baz::MyVec;
   |
help: if you import `MyVec`, refer to it directly
   |
LL -         let _: Vec<i32> = fox::bar::baz::MyVec::new();
LL +         let _: Vec<i32> = MyVec::new();
   |

error[E0433]: failed to resolve: use of undeclared crate or module `vec`
  --> $DIR/112590-2.rs:24:15
   |
LL |     type _B = vec::Vec::<u8>;
   |               ^^^ use of undeclared crate or module `vec`
   |
help: consider importing this module
   |
LL + use std::vec;
   |

error[E0433]: failed to resolve: could not find `sync_error` in `std`
  --> $DIR/112590-2.rs:25:19
   |
LL |     let _t = std::sync_error::atomic::AtomicBool::new(true);
   |                   ^^^^^^^^^^ could not find `sync_error` in `std`
   |
help: consider importing this struct
   |
LL + use std::sync::atomic::AtomicBool;
   |
help: if you import `AtomicBool`, refer to it directly
   |
LL -     let _t = std::sync_error::atomic::AtomicBool::new(true);
LL +     let _t = AtomicBool::new(true);
   |

error[E0433]: failed to resolve: use of undeclared crate or module `vec`
  --> $DIR/112590-2.rs:23:24
   |
LL |     let _t: Vec<i32> = vec::new();
   |                        ^^^
   |                        |
   |                        use of undeclared crate or module `vec`
   |                        help: a struct with a similar name exists (notice the capitalization): `Vec`

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0433`.