]> git.lizzy.rs Git - rust.git/blobdiff - 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
index 0325d6436abcb4d20d3dc13ef11cee14273ec510..f4c126a6e025b3179e69869ae59f7d217c08b236 100644 (file)
@@ -1,4 +1,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() {}