summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-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/issue-39802-show-5-trait-impls.stderr')
-rw-r--r--tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr b/tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
new file mode 100644
index 000000000..7229b9ac9
--- /dev/null
+++ b/tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
@@ -0,0 +1,48 @@
+error[E0277]: the trait bound `i8: Foo<i32>` is not satisfied
+ --> $DIR/issue-39802-show-5-trait-impls.rs:24:21
+ |
+LL | Foo::<i32>::bar(&1i8);
+ | --------------- ^^^^ the trait `Foo<i32>` is not implemented for `i8`
+ | |
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `Foo<B>`:
+ <i8 as Foo<bool>>
+ <i8 as Foo<u16>>
+ <i8 as Foo<u32>>
+ <i8 as Foo<u64>>
+ <i8 as Foo<u8>>
+
+error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
+ --> $DIR/issue-39802-show-5-trait-impls.rs:25:21
+ |
+LL | Foo::<i32>::bar(&1u8);
+ | --------------- ^^^^ the trait `Foo<i32>` is not implemented for `u8`
+ | |
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `Foo<B>`:
+ <u8 as Foo<bool>>
+ <u8 as Foo<u16>>
+ <u8 as Foo<u32>>
+ <u8 as Foo<u64>>
+
+error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
+ --> $DIR/issue-39802-show-5-trait-impls.rs:26:21
+ |
+LL | Foo::<i32>::bar(&true);
+ | --------------- ^^^^^ the trait `Foo<i32>` is not implemented for `bool`
+ | |
+ | required by a bound introduced by this call
+ |
+ = help: the following other types implement trait `Foo<B>`:
+ <bool as Foo<bool>>
+ <bool as Foo<i8>>
+ <bool as Foo<u16>>
+ <bool as Foo<u32>>
+ <bool as Foo<u64>>
+ <bool as Foo<u8>>
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0277`.