blob: 37766936410edde97311d0095614cef84df40665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Issue a error when the user uses #[no_mangle] on internal language items
//@ edition:2024
#![feature(rustc_attrs)]
#[rustc_std_internal_symbol]
#[unsafe(no_mangle)] //~ERROR `#[no_mangle]` cannot be used on internal language items
fn internal_lang_function () {
}
fn main() {
}
|