diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/did_you_mean/bad-assoc-pat.stderr | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/did_you_mean/bad-assoc-pat.stderr')
-rw-r--r-- | tests/ui/did_you_mean/bad-assoc-pat.stderr | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/tests/ui/did_you_mean/bad-assoc-pat.stderr b/tests/ui/did_you_mean/bad-assoc-pat.stderr new file mode 100644 index 000000000..19d173f1b --- /dev/null +++ b/tests/ui/did_you_mean/bad-assoc-pat.stderr @@ -0,0 +1,85 @@ +error: missing angle brackets in associated item path + --> $DIR/bad-assoc-pat.rs:3:9 + | +LL | [u8]::AssocItem => {} + | ^^^^^^^^^^^^^^^ help: try: `<[u8]>::AssocItem` + +error: missing angle brackets in associated item path + --> $DIR/bad-assoc-pat.rs:6:9 + | +LL | (u8, u8)::AssocItem => {} + | ^^^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocItem` + +error: missing angle brackets in associated item path + --> $DIR/bad-assoc-pat.rs:9:9 + | +LL | _::AssocItem => {} + | ^^^^^^^^^^^^ help: try: `<_>::AssocItem` + +error: missing angle brackets in associated item path + --> $DIR/bad-assoc-pat.rs:14:10 + | +LL | &(u8,)::AssocItem => {} + | ^^^^^^^^^^^^^^^^ help: try: `<(u8,)>::AssocItem` + +error: missing angle brackets in associated item path + --> $DIR/bad-assoc-pat.rs:32:9 + | +LL | ty!()::AssocItem => {} + | ^^^^^^^^^^^^^^^^ help: try: `<ty!()>::AssocItem` + +error: missing angle brackets in associated item path + --> $DIR/bad-assoc-pat.rs:21:19 + | +LL | ($ty: ty) => ($ty::AssocItem) + | ^^^^^^^^^^^^^^ help: try: `<$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) + +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`. |