From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- tests/ui/traits/inductive-overflow/supertrait.stderr | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/ui/traits/inductive-overflow/supertrait.stderr (limited to 'tests/ui/traits/inductive-overflow/supertrait.stderr') diff --git a/tests/ui/traits/inductive-overflow/supertrait.stderr b/tests/ui/traits/inductive-overflow/supertrait.stderr new file mode 100644 index 00000000000..4b862cf79ce --- /dev/null +++ b/tests/ui/traits/inductive-overflow/supertrait.stderr @@ -0,0 +1,20 @@ +error[E0275]: overflow evaluating the requirement `NoClone: Magic` + --> $DIR/supertrait.rs:13:18 + | +LL | let (a, b) = copy(NoClone); + | ^^^^ + | +note: required for `NoClone` to implement `Magic` + --> $DIR/supertrait.rs:5:16 + | +LL | impl Magic for T {} + | ^^^^^ ^ +note: required by a bound in `copy` + --> $DIR/supertrait.rs:7:12 + | +LL | fn copy(x: T) -> (T, T) { (x, x) } + | ^^^^^ required by this bound in `copy` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0275`. -- cgit 1.4.1-3-g733a5