rust/src/test/ui/did_you_mean/bad-assoc-pat.stderr

60 lines
1.9 KiB
Plaintext
Raw Normal View History

error: missing angle brackets in associated item path
2018-12-25 15:56:47 +00:00
--> $DIR/bad-assoc-pat.rs:3:9
|
2018-02-23 00:42:32 +00:00
LL | [u8]::AssocItem => {}
| ^^^^^^^^^^^^^^^ help: try: `<[u8]>::AssocItem`
error: missing angle brackets in associated item path
2018-12-25 15:56:47 +00:00
--> $DIR/bad-assoc-pat.rs:6:9
|
2018-02-23 00:42:32 +00:00
LL | (u8, u8)::AssocItem => {}
| ^^^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocItem`
error: missing angle brackets in associated item path
2018-12-25 15:56:47 +00:00
--> $DIR/bad-assoc-pat.rs:9:9
|
2018-02-23 00:42:32 +00:00
LL | _::AssocItem => {}
| ^^^^^^^^^^^^ help: try: `<_>::AssocItem`
error: missing angle brackets in associated item path
2018-12-25 15:56:47 +00:00
--> $DIR/bad-assoc-pat.rs:14:10
|
2018-02-23 00:42:32 +00:00
LL | &(u8,)::AssocItem => {}
| ^^^^^^^^^^^^^^^^ help: try: `<(u8,)>::AssocItem`
error[E0599]: no associated item named `AssocItem` found for type `[u8]` in the current scope
2018-12-07 18:15:36 +00:00
--> $DIR/bad-assoc-pat.rs:3:15
|
2018-02-23 00:42:32 +00:00
LL | [u8]::AssocItem => {}
2018-12-07 18:15:36 +00:00
| ------^^^^^^^^^
| |
| associated item not found in `[u8]`
error[E0599]: no associated item named `AssocItem` found for type `(u8, u8)` in the current scope
2018-12-07 18:15:36 +00:00
--> $DIR/bad-assoc-pat.rs:6:19
|
2018-02-23 00:42:32 +00:00
LL | (u8, u8)::AssocItem => {}
2018-12-07 18:15:36 +00:00
| ----------^^^^^^^^^
| |
| associated item not found in `(u8, u8)`
error[E0599]: no associated item named `AssocItem` found for type `_` in the current scope
2018-12-07 18:15:36 +00:00
--> $DIR/bad-assoc-pat.rs:9:12
|
2018-02-23 00:42:32 +00:00
LL | _::AssocItem => {}
2018-12-07 18:15:36 +00:00
| ---^^^^^^^^^
| |
| associated item not found in `_`
error[E0599]: no associated item named `AssocItem` found for type `(u8,)` in the current scope
2018-12-07 18:15:36 +00:00
--> $DIR/bad-assoc-pat.rs:14:17
|
2018-02-23 00:42:32 +00:00
LL | &(u8,)::AssocItem => {}
2018-12-07 18:15:36 +00:00
| -------^^^^^^^^^
| |
| associated item not found in `(u8,)`
error: aborting due to 8 previous errors
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0599`.