]> git.proxmox.com Git - rustc.git/blame - tests/ui/imports/glob-resolve1.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / imports / glob-resolve1.stderr
CommitLineData
b7449926 1error[E0425]: cannot find function `fpriv` in this scope
5869c6ff 2 --> $DIR/glob-resolve1.rs:26:5
b7449926 3 |
532ac7d7 4LL | fpriv();
b7449926 5 | ^^^^^ not found in this scope
e74abb32 6 |
c295e0f8
XL
7note: function `bar::fpriv` exists but is inaccessible
8 --> $DIR/glob-resolve1.rs:7:5
b7449926 9 |
c295e0f8
XL
10LL | fn fpriv() {}
11 | ^^^^^^^^^^ not accessible
b7449926
XL
12
13error[E0425]: cannot find function `epriv` in this scope
5869c6ff 14 --> $DIR/glob-resolve1.rs:27:5
b7449926 15 |
532ac7d7 16LL | epriv();
b7449926 17 | ^^^^^ not found in this scope
e74abb32 18 |
c295e0f8
XL
19note: function `bar::epriv` exists but is inaccessible
20 --> $DIR/glob-resolve1.rs:9:9
b7449926 21 |
c295e0f8
XL
22LL | fn epriv();
23 | ^^^^^^^^^^^ not accessible
b7449926
XL
24
25error[E0423]: expected value, found enum `B`
5869c6ff 26 --> $DIR/glob-resolve1.rs:28:5
b7449926 27 |
532ac7d7 28LL | B;
29967ef6
XL
29 | ^
30 |
31note: the enum is defined here
5869c6ff 32 --> $DIR/glob-resolve1.rs:14:5
29967ef6 33 |
5869c6ff
XL
34LL | / pub enum B {
35LL | | B1,
36LL | | }
37 | |_____^
29967ef6
XL
38help: you might have meant to use the following enum variant
39 |
40LL | B::B1;
94222f64 41 | ~~~~~
b7449926
XL
42
43error[E0425]: cannot find value `C` in this scope
5869c6ff 44 --> $DIR/glob-resolve1.rs:29:5
b7449926 45 |
532ac7d7 46LL | C;
b7449926 47 | ^ not found in this scope
e74abb32 48 |
c295e0f8
XL
49note: unit struct `bar::C` exists but is inaccessible
50 --> $DIR/glob-resolve1.rs:18:5
b7449926 51 |
c295e0f8
XL
52LL | struct C;
53 | ^^^^^^^^^ not accessible
b7449926
XL
54
55error[E0425]: cannot find function `import` in this scope
5869c6ff 56 --> $DIR/glob-resolve1.rs:30:5
b7449926 57 |
532ac7d7 58LL | import();
b7449926 59 | ^^^^^^ not found in this scope
f035d41b
XL
60 |
61help: consider importing this function
62 |
353b0b11 63LL + use other::import;
f035d41b 64 |
b7449926
XL
65
66error[E0412]: cannot find type `A` in this scope
5869c6ff 67 --> $DIR/glob-resolve1.rs:32:11
b7449926 68 |
5869c6ff 69LL | pub enum B {
ba9703b0 70 | ---------- similarly named enum `B` defined here
e74abb32 71...
532ac7d7 72LL | foo::<A>();
c295e0f8 73 | ^ help: an enum with a similar name exists: `B`
0731742a 74 |
c295e0f8
XL
75note: enum `bar::A` exists but is inaccessible
76 --> $DIR/glob-resolve1.rs:11:5
b7449926 77 |
c295e0f8
XL
78LL | enum A {
79 | ^^^^^^ not accessible
b7449926
XL
80
81error[E0412]: cannot find type `C` in this scope
5869c6ff 82 --> $DIR/glob-resolve1.rs:33:11
b7449926 83 |
5869c6ff 84LL | pub enum B {
ba9703b0 85 | ---------- similarly named enum `B` defined here
e74abb32 86...
532ac7d7 87LL | foo::<C>();
c295e0f8 88 | ^ help: an enum with a similar name exists: `B`
b7449926 89 |
c295e0f8
XL
90note: struct `bar::C` exists but is inaccessible
91 --> $DIR/glob-resolve1.rs:18:5
b7449926 92 |
c295e0f8
XL
93LL | struct C;
94 | ^^^^^^^^^ not accessible
b7449926
XL
95
96error[E0412]: cannot find type `D` in this scope
5869c6ff 97 --> $DIR/glob-resolve1.rs:34:11
b7449926 98 |
5869c6ff 99LL | pub enum B {
ba9703b0 100 | ---------- similarly named enum `B` defined here
e74abb32 101...
532ac7d7 102LL | foo::<D>();
c295e0f8 103 | ^ help: an enum with a similar name exists: `B`
b7449926 104 |
c295e0f8
XL
105note: type alias `bar::D` exists but is inaccessible
106 --> $DIR/glob-resolve1.rs:20:5
b7449926 107 |
c295e0f8
XL
108LL | type D = isize;
109 | ^^^^^^^^^^^^^^^ not accessible
b7449926
XL
110
111error: aborting due to 8 previous errors
112
48663c56 113Some errors have detailed explanations: E0412, E0423, E0425.
b7449926 114For more information about an error, try `rustc --explain E0412`.