blob: d4a0721147ab4e6f88fcf3613af15afdee315c63 [file] [log] [blame]
// aux-build:derive-helper-shadowing.rs
extern crate derive_helper_shadowing;
use derive_helper_shadowing::*;
#[my_attr] //~ ERROR `my_attr` is ambiguous
#[derive(MyTrait)]
struct S {
// FIXME No ambiguity, attributes in non-macro positions are not resolved properly
#[my_attr]
field: [u8; {
// FIXME No ambiguity, derive helpers are not put into scope for non-attributes
use my_attr;
// FIXME No ambiguity, derive helpers are not put into scope for inner items
#[my_attr]
struct U;
0
}]
}
fn main() {
let s = S { field: [] };
}