]> git.proxmox.com Git - rustc.git/blob - tests/ui/unsafe/issue-3080.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }