fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
545 B16 linesraw
1error[E0200]: the trait `UnsafeTrait` requires an `unsafe impl` declaration
2  --> $DIR/trait-safety-trait-impl.rs:14:1
3   |
4LL | impl UnsafeTrait for u16 { }
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7error[E0199]: implementing the trait `SafeTrait` is not unsafe
8  --> $DIR/trait-safety-trait-impl.rs:16:1
9   |
10LL | unsafe impl SafeTrait for u32 { }
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`.