fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
562 B16 linesraw
1error[E0199]: implementing the trait `MySafeTrait` is not unsafe
2  --> $DIR/coherence-default-trait-impl.rs:7:1
3   |
4LL | unsafe impl MySafeTrait for Foo {}
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7error[E0200]: the trait `MyUnsafeTrait` requires an `unsafe impl` declaration
8  --> $DIR/coherence-default-trait-impl.rs:12:1
9   |
10LL | impl MyUnsafeTrait for Foo {}
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to 2 previous errors
14
15Some errors have detailed explanations: E0199, E0200.
16For more information about an error, try `rustc --explain E0199`.