summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2457/no_mangle_nonascii_forbidden.rs
blob: f4c126a6e025b3179e69869ae59f7d217c08b236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[no_mangle]
pub fn řųśť() {}  //~ `#[no_mangle]` requires ASCII identifier

pub struct Foo;

impl Foo {
    #[no_mangle]
    pub fn řųśť() {}  //~ `#[no_mangle]` requires ASCII identifier
}

trait Bar {
    fn řųśť();
}

impl Bar for Foo {
    #[no_mangle]
    fn řųśť() {}  //~ `#[no_mangle]` requires ASCII identifier
}

fn main() {}