rust/tests/ui/feature-gates/feature-gate-allow-internal-unstable-struct.rs
Jonathan Brouwer 4bb7bf64e0
Update uitests
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-08-14 18:18:42 +02:00

11 lines
462 B
Rust

// checks that this attribute is caught on non-macro items.
// this needs a different test since this is done after expansion
// 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
//~| ERROR attribute cannot be used on
struct S;
fn main() {}