]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/safety-inherent-impl.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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() { }