]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/inductive-overflow/supertrait.stderr
Rollup merge of #106734 - albertlarsan68:deny-src-tests-in-tidy, r=Nilstrieb
[rust.git] / tests / ui / traits / inductive-overflow / supertrait.stderr
1 error[E0275]: overflow evaluating the requirement `NoClone: Magic`
2   --> $DIR/supertrait.rs:13:18
3    |
4 LL |     let (a, b) = copy(NoClone);
5    |                  ^^^^
6    |
7 note: required for `NoClone` to implement `Magic`
8   --> $DIR/supertrait.rs:5:16
9    |
10 LL | impl<T: Magic> Magic for T {}
11    |         -----  ^^^^^     ^
12    |         |
13    |         unsatisfied trait bound introduced here
14 note: required by a bound in `copy`
15   --> $DIR/supertrait.rs:7:12
16    |
17 LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
18    |            ^^^^^ required by this bound in `copy`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0275`.