summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/bad-assoc-pat.stderr
blob: 8bdeb8ffdd0a8cfae34cc7dbc27187405f4b1cbc (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
error: missing angle brackets in associated item path
  --> $DIR/bad-assoc-pat.rs:3:9
   |
LL |         [u8]::AssocItem => {}
   |         ^^^^
   |
help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
   |
LL |         <[u8]>::AssocItem => {}
   |         +    +

error: missing angle brackets in associated item path
  --> $DIR/bad-assoc-pat.rs:6:9
   |
LL |         (u8, u8)::AssocItem => {}
   |         ^^^^^^^^
   |
help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
   |
LL |         <(u8, u8)>::AssocItem => {}
   |         +        +

error: missing angle brackets in associated item path
  --> $DIR/bad-assoc-pat.rs:9:9
   |
LL |         _::AssocItem => {}
   |         ^
   |
help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
   |
LL |         <_>::AssocItem => {}
   |         + +

error: missing angle brackets in associated item path
  --> $DIR/bad-assoc-pat.rs:14:10
   |
LL |         &(u8,)::AssocItem => {}
   |          ^^^^^
   |
help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
   |
LL |         &<(u8,)>::AssocItem => {}
   |          +     +

error: missing angle brackets in associated item path
  --> $DIR/bad-assoc-pat.rs:32:9
   |
LL |         ty!()::AssocItem => {}
   |         ^^^^^
   |
help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
   |
LL |         <ty!()>::AssocItem => {}
   |         +     +

error: missing angle brackets in associated item path
  --> $DIR/bad-assoc-pat.rs:21:19
   |
LL |     ($ty: ty) => ($ty::AssocItem)
   |                   ^^^
...
LL |         pat!(u8) => {}
   |         -------- in this macro invocation
   |
   = note: this error originates in the macro `pat` (in Nightly builds, run with -Z macro-backtrace for more info)
help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
   |
LL |     ($ty: ty) => (<$ty>::AssocItem)
   |                   +   +

error[E0599]: no associated item named `AssocItem` found for slice `[u8]` in the current scope
  --> $DIR/bad-assoc-pat.rs:3:15
   |
LL |         [u8]::AssocItem => {}
   |               ^^^^^^^^^ associated item not found in `[u8]`

error[E0599]: no associated item named `AssocItem` found for tuple `(u8, u8)` in the current scope
  --> $DIR/bad-assoc-pat.rs:6:19
   |
LL |         (u8, u8)::AssocItem => {}
   |                   ^^^^^^^^^ associated item not found in `(u8, u8)`

error[E0599]: no associated item named `AssocItem` found for type `_` in the current scope
  --> $DIR/bad-assoc-pat.rs:9:12
   |
LL |         _::AssocItem => {}
   |            ^^^^^^^^^ associated item not found in `_`

error[E0599]: no associated item named `AssocItem` found for tuple `(u8,)` in the current scope
  --> $DIR/bad-assoc-pat.rs:14:17
   |
LL |         &(u8,)::AssocItem => {}
   |                 ^^^^^^^^^ associated item not found in `(u8,)`

error[E0599]: no associated item named `AssocItem` found for type `u8` in the current scope
  --> $DIR/bad-assoc-pat.rs:21:24
   |
LL |     ($ty: ty) => ($ty::AssocItem)
   |                        ^^^^^^^^^ associated item not found in `u8`
...
LL |         pat!(u8) => {}
   |         -------- in this macro invocation
   |
   = note: this error originates in the macro `pat` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no associated item named `AssocItem` found for type `u8` in the current scope
  --> $DIR/bad-assoc-pat.rs:32:16
   |
LL |         ty!()::AssocItem => {}
   |                ^^^^^^^^^ associated item not found in `u8`

error: aborting due to 12 previous errors

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