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 --- .../where-clauses/where-clause-method-substituion.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/ui/where-clauses/where-clause-method-substituion.stderr (limited to 'tests/ui/where-clauses/where-clause-method-substituion.stderr') diff --git a/tests/ui/where-clauses/where-clause-method-substituion.stderr b/tests/ui/where-clauses/where-clause-method-substituion.stderr new file mode 100644 index 000000000..8c47ed6d4 --- /dev/null +++ b/tests/ui/where-clauses/where-clause-method-substituion.stderr @@ -0,0 +1,15 @@ +error[E0277]: the trait bound `X: Foo` is not satisfied + --> $DIR/where-clause-method-substituion.rs:20:16 + | +LL | 1.method::(); + | ^ the trait `Foo` is not implemented for `X` + | +note: required by a bound in `Bar::method` + --> $DIR/where-clause-method-substituion.rs:6:34 + | +LL | fn method(&self) where A: Foo; + | ^^^^^^ required by this bound in `Bar::method` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3