fork/rust

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

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

1.43.0
342 B15 linesraw
1error[E0197]: inherent impls cannot be unsafe
2  --> $DIR/trait-safety-inherent-impl.rs:5:1
3   |
4LL |   unsafe impl SomeStruct {
5   |   ^-----
6   |   |
7   |  _unsafe because of this
8   | |
9LL | |     fn foo(self) { }
10LL | | }
11   | |_^
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0197`.