]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2457/no_mangle_nonascii_forbidden.rs
Adjust `#[no_mangle]`-related checks and lints for `impl` items
[rust.git] / src / test / ui / rfc-2457 / no_mangle_nonascii_forbidden.rs
1 #[no_mangle]
2 pub fn řųśť() {}  //~ `#[no_mangle]` requires ASCII identifier
3
4 pub struct Foo;
5
6 impl Foo {
7     #[no_mangle]
8     pub fn řųśť() {}  //~ `#[no_mangle]` requires ASCII identifier
9 }
10
11 trait Bar {
12     fn řųśť();
13 }
14
15 impl Bar for Foo {
16     #[no_mangle]
17     fn řųśť() {}  //~ `#[no_mangle]` requires ASCII identifier
18 }
19
20 fn main() {}