]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/proc-macro/derive-helper-shadowing.rs
resolve: Introduce a new scope for derive helpers
[rust.git] / src / test / ui / proc-macro / derive-helper-shadowing.rs
index 21af4093a037de46f187556cfdd07ff63ad53d33..a8f4eea4cb70b9b6c907e9f4971c0ec68fc00125 100644 (file)
@@ -1,3 +1,4 @@
+// edition:2018
 // aux-build:test-macros.rs
 
 #[macro_use]
@@ -11,8 +12,7 @@ struct S {
     // FIXME No ambiguity, attributes in non-macro positions are not resolved properly
     #[empty_helper]
     field: [u8; {
-        // FIXME No ambiguity, derive helpers are not put into scope for non-attributes
-        use empty_helper;
+        use empty_helper; //~ ERROR `empty_helper` is ambiguous
 
         // FIXME No ambiguity, derive helpers are not put into scope for inner items
         #[empty_helper]