]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/inductive-overflow/supertrait.stderr
Move /src/test to /tests
[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 note: required by a bound in `copy`
13   --> $DIR/supertrait.rs:7:12
14    |
15 LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
16    |            ^^^^^ required by this bound in `copy`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0275`.