]> git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/bad-assoc-ty.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / did_you_mean / bad-assoc-ty.stderr
1 error: missing angle brackets in associated item path
2 --> $DIR/bad-assoc-ty.rs:11:10
3 |
4 LL | type A = [u8; 4]::AssocTy;
5 | ^^^^^^^^^^^^^^^^ help: try: `<[u8; 4]>::AssocTy`
6
7 error: missing angle brackets in associated item path
8 --> $DIR/bad-assoc-ty.rs:15:10
9 |
10 LL | type B = [u8]::AssocTy;
11 | ^^^^^^^^^^^^^ help: try: `<[u8]>::AssocTy`
12
13 error: missing angle brackets in associated item path
14 --> $DIR/bad-assoc-ty.rs:19:10
15 |
16 LL | type C = (u8)::AssocTy;
17 | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
18
19 error: missing angle brackets in associated item path
20 --> $DIR/bad-assoc-ty.rs:23:10
21 |
22 LL | type D = (u8, u8)::AssocTy;
23 | ^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocTy`
24
25 error: missing angle brackets in associated item path
26 --> $DIR/bad-assoc-ty.rs:27:10
27 |
28 LL | type E = _::AssocTy;
29 | ^^^^^^^^^^ help: try: `<_>::AssocTy`
30
31 error: missing angle brackets in associated item path
32 --> $DIR/bad-assoc-ty.rs:31:19
33 |
34 LL | type F = &'static (u8)::AssocTy;
35 | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
36
37 error: missing angle brackets in associated item path
38 --> $DIR/bad-assoc-ty.rs:37:10
39 |
40 LL | type G = 'static + (Send)::AssocTy;
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<'static + Send>::AssocTy`
42
43 error[E0223]: ambiguous associated type
44 --> $DIR/bad-assoc-ty.rs:11:10
45 |
46 LL | type A = [u8; 4]::AssocTy;
47 | ^^^^^^^^^^^^^^^^ ambiguous associated type
48 |
49 = note: specify the type using the syntax `<[u8; _] as Trait>::AssocTy`
50
51 error[E0223]: ambiguous associated type
52 --> $DIR/bad-assoc-ty.rs:15:10
53 |
54 LL | type B = [u8]::AssocTy;
55 | ^^^^^^^^^^^^^ ambiguous associated type
56 |
57 = note: specify the type using the syntax `<[u8] as Trait>::AssocTy`
58
59 error[E0223]: ambiguous associated type
60 --> $DIR/bad-assoc-ty.rs:19:10
61 |
62 LL | type C = (u8)::AssocTy;
63 | ^^^^^^^^^^^^^ ambiguous associated type
64 |
65 = note: specify the type using the syntax `<u8 as Trait>::AssocTy`
66
67 error[E0223]: ambiguous associated type
68 --> $DIR/bad-assoc-ty.rs:23:10
69 |
70 LL | type D = (u8, u8)::AssocTy;
71 | ^^^^^^^^^^^^^^^^^ ambiguous associated type
72 |
73 = note: specify the type using the syntax `<(u8, u8) as Trait>::AssocTy`
74
75 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
76 --> $DIR/bad-assoc-ty.rs:27:10
77 |
78 LL | type E = _::AssocTy;
79 | ^ not allowed in type signatures
80
81 error[E0223]: ambiguous associated type
82 --> $DIR/bad-assoc-ty.rs:31:19
83 |
84 LL | type F = &'static (u8)::AssocTy;
85 | ^^^^^^^^^^^^^ ambiguous associated type
86 |
87 = note: specify the type using the syntax `<u8 as Trait>::AssocTy`
88
89 error[E0223]: ambiguous associated type
90 --> $DIR/bad-assoc-ty.rs:37:10
91 |
92 LL | type G = 'static + (Send)::AssocTy;
93 | ^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
94 |
95 = note: specify the type using the syntax `<std::marker::Send + 'static as Trait>::AssocTy`
96
97 error[E0223]: ambiguous associated type
98 --> $DIR/bad-assoc-ty.rs:43:10
99 |
100 LL | type H = Fn(u8) -> (u8)::Output;
101 | ^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
102 |
103 = note: specify the type using the syntax `<std::ops::Fn(u8) -> u8 + 'static as Trait>::Output`
104
105 error: aborting due to 15 previous errors
106
107 Some errors occurred: E0121, E0223.
108 For more information about an error, try `rustc --explain E0121`.