]> git.proxmox.com Git - rustc.git/blob - src/test/ui/coherence/coherence-default-trait-impl.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-default-trait-impl.stderr
1 error[E0199]: implementing the trait `MySafeTrait` is not unsafe
2 --> $DIR/coherence-default-trait-impl.rs:8:1
3 |
4 LL | unsafe impl MySafeTrait for Foo {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error[E0200]: the trait `MyUnsafeTrait` requires an `unsafe impl` declaration
8 --> $DIR/coherence-default-trait-impl.rs:13:1
9 |
10 LL | impl MyUnsafeTrait for Foo {}
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0199, E0200.
16 For more information about an error, try `rustc --explain E0199`.