1 error: declaration of an `unsafe` function
2 --> $DIR/lint-unsafe-code.rs:23:1
4 LL | unsafe fn baz() {}
7 note: the lint level is defined here
8 --> $DIR/lint-unsafe-code.rs:3:9
10 LL | #![deny(unsafe_code)]
13 error: declaration of an `unsafe` trait
14 --> $DIR/lint-unsafe-code.rs:24:1
16 LL | unsafe trait Foo {}
19 error: implementation of an `unsafe` trait
20 --> $DIR/lint-unsafe-code.rs:25:1
22 LL | unsafe impl Foo for Bar {}
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error: declaration of an `unsafe` method
26 --> $DIR/lint-unsafe-code.rs:28:5
28 LL | unsafe fn baz(&self);
29 | ^^^^^^^^^^^^^^^^^^^^^
31 error: implementation of an `unsafe` method
32 --> $DIR/lint-unsafe-code.rs:29:5
34 LL | unsafe fn provided(&self) {}
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 error: implementation of an `unsafe` method
38 --> $DIR/lint-unsafe-code.rs:30:5
40 LL | unsafe fn provided_override(&self) {}
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 error: implementation of an `unsafe` method
44 --> $DIR/lint-unsafe-code.rs:34:5
46 LL | unsafe fn baz(&self) {}
47 | ^^^^^^^^^^^^^^^^^^^^^^^
49 error: implementation of an `unsafe` method
50 --> $DIR/lint-unsafe-code.rs:35:5
52 LL | unsafe fn provided_override(&self) {}
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 error: implementation of an `unsafe` method
56 --> $DIR/lint-unsafe-code.rs:54:5
58 LL | unsafe fn provided_override(&self) {}
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 error: implementation of an `unsafe` method
62 --> $DIR/lint-unsafe-code.rs:65:5
64 LL | unsafe fn provided(&self) {}
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 error: implementation of an `unsafe` method
68 --> $DIR/lint-unsafe-code.rs:71:5
70 LL | unsafe fn provided(&self) {}
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73 error: implementation of an `unsafe` method
74 --> $DIR/lint-unsafe-code.rs:75:5
76 LL | unsafe fn baz(&self) {}
77 | ^^^^^^^^^^^^^^^^^^^^^^^
79 error: usage of an `unsafe` block
80 --> $DIR/lint-unsafe-code.rs:86:5
85 error: usage of an `unsafe` block
86 --> $DIR/lint-unsafe-code.rs:19:9
91 LL | unsafe_in_macro!()
92 | ------------------ in this macro invocation
94 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
96 error: aborting due to 14 previous errors