about summary refs log tree commit diff
path: root/tests/ui/delegation/glob-non-fn.stderr
blob: f63c8e88c6faea1c42bb40041949e45863d450da (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
error[E0324]: item `CONST` is an associated method, which doesn't match its trait `Trait`
  --> $DIR/glob-non-fn.rs:30:5
   |
LL |     const CONST: u8;
   |     ---------------- item in trait
...
LL |     reuse Trait::* { &self.0 }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait

error[E0324]: item `Type` is an associated method, which doesn't match its trait `Trait`
  --> $DIR/glob-non-fn.rs:30:5
   |
LL |     type Type;
   |     ---------- item in trait
...
LL |     reuse Trait::* { &self.0 }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ does not match trait

error[E0201]: duplicate definitions with name `method`:
  --> $DIR/glob-non-fn.rs:30:5
   |
LL |     fn method(&self);
   |     ----------------- item in trait
...
LL |     reuse Trait::* { &self.0 }
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     duplicate definition
   |     previous definition here

error[E0423]: expected function, found associated constant `Trait::CONST`
  --> $DIR/glob-non-fn.rs:30:11
   |
LL |     reuse Trait::* { &self.0 }
   |           ^^^^^ not a function

error[E0423]: expected function, found associated type `Trait::Type`
  --> $DIR/glob-non-fn.rs:30:11
   |
LL |     reuse Trait::* { &self.0 }
   |           ^^^^^ not a function

error[E0046]: not all trait items implemented, missing: `CONST`, `Type`, `method`
  --> $DIR/glob-non-fn.rs:29:1
   |
LL |     const CONST: u8;
   |     --------------- `CONST` from trait
LL |     type Type;
   |     --------- `Type` from trait
LL |     #[allow(non_camel_case_types)]
LL |     type method;
   |     ----------- `method` from trait
...
LL | impl Trait for Bad {
   | ^^^^^^^^^^^^^^^^^^ missing `CONST`, `Type`, `method` in implementation

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0046, E0201, E0324, E0423.
For more information about an error, try `rustc --explain E0046`.