about summary refs log tree commit diff
path: root/tests/ui/rust-2024/unsafe-attributes/in_2024_compatibility.rs
blob: f3b8645abaf89e146fa57ac25c25d27430963b81 (plain)
1
2
3
4
5
6
7
8
#![deny(rust_2024_compatibility)]

#[no_mangle]
//~^ ERROR: unsafe attribute used without unsafe
//~| WARN this is accepted in the current edition
extern "C" fn foo() {}

fn main() {}