fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
821 B21 linesraw
1error[E0568]: auto traits cannot have super traits
2  --> $DIR/traits-inductive-overflow-supertrait-oibit.rs:7:1
3   |
4LL | auto trait Magic: Copy {}
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^
6
7error[E0277]: the trait bound `NoClone: std::marker::Copy` is not satisfied
8  --> $DIR/traits-inductive-overflow-supertrait-oibit.rs:15:23
9   |
10LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
11   |    ----    ----- required by this bound in `copy`
12...
13LL |     let (a, b) = copy(NoClone);
14   |                       ^^^^^^^ the trait `std::marker::Copy` is not implemented for `NoClone`
15   |
16   = note: required because of the requirements on the impl of `Magic` for `NoClone`
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0277, E0568.
21For more information about an error, try `rustc --explain E0277`.