]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsafe/issue-3080.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / unsafe / issue-3080.rs
1 // revisions: mir thir
2 // [thir]compile-flags: -Z thir-unsafeck
3
4 struct X(());
5 impl X {
6     pub unsafe fn with(&self) { }
7 }
8
9 fn main() {
10     X(()).with(); //~ ERROR requires unsafe function or block
11 }