os-rust/tests/ui/unsafe/issue-3080.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
136 B
Rust
Raw Normal View History

struct X(());
impl X {
2013-09-02 23:30:00 +10:00
pub unsafe fn with(&self) { }
2012-12-06 16:13:40 -08:00
}
fn main() {
X(()).with(); //~ ERROR requires unsafe function or block
2012-12-06 16:13:40 -08:00
}