2016-04-07 00:43:03 +02:00
|
|
|
// checks that this attribute is caught on non-macro items.
|
|
|
|
|
// this needs a different test since this is done after expansion
|
2015-02-15 23:49:55 +01:00
|
|
|
|
2025-02-09 22:50:01 +01:00
|
|
|
// FIXME(jdonszelmann): empty attributes are currently ignored, since when its empty no actual
|
|
|
|
|
// change is applied. This should be fixed when later moving this check to attribute parsing.
|
|
|
|
|
#[allow_internal_unstable(something)] //~ ERROR allow_internal_unstable side-steps
|
2025-08-09 20:41:01 +02:00
|
|
|
//~| ERROR attribute cannot be used on
|
2016-04-07 00:43:03 +02:00
|
|
|
struct S;
|
2015-02-15 23:49:55 +01:00
|
|
|
|
2016-04-07 00:43:03 +02:00
|
|
|
fn main() {}
|