]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/safety-inherent-impl.rs
Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup
[rust.git] / src / test / ui / traits / safety-inherent-impl.rs
1 // Check that inherent impls cannot be unsafe.
2
3 struct SomeStruct;
4
5 unsafe impl SomeStruct { //~ ERROR inherent impls cannot be unsafe
6     fn foo(self) { }
7 }
8
9 fn main() { }