]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-path-associated-type.stderr
1364b2a6b0c8643bdcbde433a57cc84878100872
[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:22:13
3    |
4 LL |     let s = T::A {};
5    |             ^^^^ not a struct
6
7 error[E0109]: type parameters are not allowed on this type
8   --> $DIR/struct-path-associated-type.rs:24:20
9    |
10 LL |     let z = T::A::<u8> {};
11    |                    ^^ type parameter not allowed
12
13 error[E0071]: expected struct, variant or union type, found associated type
14   --> $DIR/struct-path-associated-type.rs:24: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:28:9
21    |
22 LL |         T::A {} => {}
23    |         ^^^^ not a struct
24
25 error[E0109]: type parameters are not allowed on this type
26   --> $DIR/struct-path-associated-type.rs:35:20
27    |
28 LL |     let z = T::A::<u8> {}; //~ ERROR type parameters are not allowed on this type
29    |                    ^^ type parameter not allowed
30
31 error[E0223]: ambiguous associated type
32   --> $DIR/struct-path-associated-type.rs:42:13
33    |
34 LL |     let s = S::A {}; //~ ERROR ambiguous associated type
35    |             ^^^^ ambiguous associated type
36    |
37    = note: specify the type using the syntax `<S as Trait>::A`
38
39 error[E0109]: type parameters are not allowed on this type
40   --> $DIR/struct-path-associated-type.rs:43:20
41    |
42 LL |     let z = S::A::<u8> {}; //~ ERROR ambiguous associated type
43    |                    ^^ type parameter not allowed
44
45 error[E0223]: ambiguous associated type
46   --> $DIR/struct-path-associated-type.rs:43:13
47    |
48 LL |     let z = S::A::<u8> {}; //~ ERROR ambiguous associated type
49    |             ^^^^^^^^^^ ambiguous associated type
50    |
51    = note: specify the type using the syntax `<S as Trait>::A`
52
53 error[E0223]: ambiguous associated type
54   --> $DIR/struct-path-associated-type.rs:46:9
55    |
56 LL |         S::A {} => {} //~ ERROR ambiguous associated type
57    |         ^^^^ ambiguous associated type
58    |
59    = note: specify the type using the syntax `<S as Trait>::A`
60
61 error: aborting due to 9 previous errors
62
63 Some errors occurred: E0071, E0109, E0223.
64 For more information about an error, try `rustc --explain E0071`.