summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/priv-in-bad-locations.stderr
blob: 70dab5bfe13dff7728b0ef8f0204581b042f4b49 (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
error[E0449]: visibility qualifiers are not permitted here
  --> $DIR/priv-in-bad-locations.rs:1:1
   |
LL | pub extern "C" {
   | ^^^
   |
   = note: place qualifiers on individual foreign items instead

error[E0449]: visibility qualifiers are not permitted here
  --> $DIR/priv-in-bad-locations.rs:11:1
   |
LL | pub impl B {}
   | ^^^
   |
   = note: place qualifiers on individual impl items instead

error[E0449]: visibility qualifiers are not permitted here
  --> $DIR/priv-in-bad-locations.rs:13:1
   |
LL | pub impl A for B {
   | ^^^
   |
   = note: trait items always share the visibility of their trait

error[E0449]: visibility qualifiers are not permitted here
  --> $DIR/priv-in-bad-locations.rs:14:5
   |
LL |     pub fn foo(&self) {}
   |     ^^^
   |
   = note: trait items always share the visibility of their trait

error: aborting due to 4 previous errors

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