about summary refs log tree commit diff
path: root/tests/ui/resolve/112590-2.stderr
blob: b39b44396d730773d82f8171e64d20630f773e7c (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
72
73
74
75
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 unresolved module or unlinked crate `fox`
  --> $DIR/112590-2.rs:18:27
   |
LL |         let _: Vec<i32> = fox::bar::baz::MyVec::new();
   |                           ^^^ use of unresolved module or unlinked crate `fox`
   |
   = help: you might be missing a crate named `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 unresolved module or unlinked crate `vec`
  --> $DIR/112590-2.rs:24:15
   |
LL |     type _B = vec::Vec::<u8>;
   |               ^^^ use of unresolved module or unlinked crate `vec`
   |
   = help: you might be missing a crate named `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 unresolved module or unlinked crate `vec`
  --> $DIR/112590-2.rs:23:24
   |
LL |     let _t: Vec<i32> = vec::new();
   |                        ^^^
   |                        |
   |                        use of unresolved module or unlinked crate `vec`
   |                        help: a struct with a similar name exists (notice the capitalization): `Vec`
   |
   = help: you might be missing a crate named `vec`

error: aborting due to 5 previous errors

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