]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | // aux-build:test-macros.rs |
b7449926 | 2 | |
dc9dc135 XL |
3 | #[macro_use] |
4 | extern crate test_macros; | |
b7449926 | 5 | |
dc9dc135 XL |
6 | use test_macros::empty_attr as empty_helper; |
7 | ||
8 | #[empty_helper] //~ ERROR `empty_helper` is ambiguous | |
9 | #[derive(Empty)] | |
69743fb6 XL |
10 | struct S { |
11 | // FIXME No ambiguity, attributes in non-macro positions are not resolved properly | |
dc9dc135 | 12 | #[empty_helper] |
69743fb6 XL |
13 | field: [u8; { |
14 | // FIXME No ambiguity, derive helpers are not put into scope for non-attributes | |
dc9dc135 | 15 | use empty_helper; |
b7449926 | 16 | |
69743fb6 | 17 | // FIXME No ambiguity, derive helpers are not put into scope for inner items |
dc9dc135 | 18 | #[empty_helper] |
69743fb6 XL |
19 | struct U; |
20 | ||
0731742a | 21 | mod inner { |
e1599b0c XL |
22 | // FIXME No ambiguity, attributes in non-macro positions are not resolved properly |
23 | #[empty_helper] | |
0731742a XL |
24 | struct V; |
25 | } | |
26 | ||
69743fb6 XL |
27 | 0 |
28 | }] | |
29 | } | |
30 | ||
31 | fn main() { | |
32 | let s = S { field: [] }; | |
33 | } |