fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
559 B15 linesraw
1error[E0200]: the trait `Bar` requires an `unsafe impl` declaration
2  --> $DIR/E0200.rs:5:1
3   |
4LL | impl Bar for Foo { }
5   | ^^^^^^^^^^^^^^^^
6   |
7   = note: the trait `Bar` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
8help: add `unsafe` to this trait implementation
9   |
10LL | unsafe impl Bar for Foo { }
11   | ++++++
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0200`.