rust/tests/ui/unsafe/issue-3080.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

9 lines
136 B
Rust

struct X(());
impl X {
pub unsafe fn with(&self) { }
}
fn main() {
X(()).with(); //~ ERROR requires unsafe function or block
}