about summary refs log tree commit diff
path: root/tests/ui/rust-2024/unsafe-attributes/unsafe-attributes.rs
blob: 4b161bc34ea064e6349c3cb6b5179cb1837997b6 (plain)
1
2
3
4
5
6
7
8
9
10
//@ revisions: edition2021 edition2024
//@[edition2021] edition:2021
//@[edition2021] check-pass
//@[edition2024] edition:2024


#[no_mangle] //[edition2024]~ ERROR: unsafe attribute used without unsafe
extern "C" fn foo() {}

fn main() {}