]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-path-associated-type.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / structs / struct-path-associated-type.stderr
1 error[E0071]: expected struct, variant or union type, found associated type
2   --> $DIR/struct-path-associated-type.rs:12:13
3    |
4 LL |     let s = T::A {};
5    |             ^^^^ not a struct
6
7 error[E0109]: type arguments are not allowed for this type
8   --> $DIR/struct-path-associated-type.rs:14:20
9    |
10 LL |     let z = T::A::<u8> {};
11    |                    ^^ type argument not allowed
12
13 error[E0071]: expected struct, variant or union type, found associated type
14   --> $DIR/struct-path-associated-type.rs:14:13
15    |
16 LL |     let z = T::A::<u8> {};
17    |             ^^^^ not a struct
18
19 error[E0071]: expected struct, variant or union type, found associated type
20   --> $DIR/struct-path-associated-type.rs:18:9
21    |
22 LL |         T::A {} => {}
23    |         ^^^^ not a struct
24
25 error[E0109]: type arguments are not allowed for this type
26   --> $DIR/struct-path-associated-type.rs:25:20
27    |
28 LL |     let z = T::A::<u8> {};
29    |                    ^^ type argument not allowed
30
31 error[E0223]: ambiguous associated type
32   --> $DIR/struct-path-associated-type.rs:32:13
33    |
34 LL |     let s = S::A {};
35    |             ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
36
37 error[E0223]: ambiguous associated type
38   --> $DIR/struct-path-associated-type.rs:33:13
39    |
40 LL |     let z = S::A::<u8> {};
41    |             ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
42
43 error[E0223]: ambiguous associated type
44   --> $DIR/struct-path-associated-type.rs:35:9
45    |
46 LL |         S::A {} => {}
47    |         ^^^^ help: use fully-qualified syntax: `<S as Trait>::A`
48
49 error: aborting due to 8 previous errors
50
51 Some errors have detailed explanations: E0071, E0109, E0223.
52 For more information about an error, try `rustc --explain E0071`.