From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/traits/copy-impl-cannot-normalize.stderr | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/ui/traits/copy-impl-cannot-normalize.stderr (limited to 'tests/ui/traits/copy-impl-cannot-normalize.stderr') diff --git a/tests/ui/traits/copy-impl-cannot-normalize.stderr b/tests/ui/traits/copy-impl-cannot-normalize.stderr new file mode 100644 index 000000000..86c511c08 --- /dev/null +++ b/tests/ui/traits/copy-impl-cannot-normalize.stderr @@ -0,0 +1,24 @@ +error[E0277]: the trait bound `T: TraitFoo` is not satisfied + --> $DIR/copy-impl-cannot-normalize.rs:22:18 + | +LL | impl Copy for Foo {} + | ^^^^^^ the trait `TraitFoo` is not implemented for `T` + | +note: required for `Foo` to implement `Clone` + --> $DIR/copy-impl-cannot-normalize.rs:12:9 + | +LL | impl Clone for Foo + | ^^^^^ ^^^^^^ +LL | where +LL | T: TraitFoo, + | -------- unsatisfied trait bound introduced here +note: required by a bound in `Copy` + --> $SRC_DIR/core/src/marker.rs:LL:COL +help: consider restricting type parameter `T` + | +LL | impl Copy for Foo {} + | ++++++++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3