Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
attributes
/
inline-attribute-enum-variant-error.rs
blob: 305b285d2a4f6a37949d2f6ef17d709a39fb3765 [
file
] [
log
] [
blame
]
//! Test that #[inline] attribute cannot be applied to enum variants
enum
Foo
{
#[
inline
]
//~^ ERROR attribute should be applied
Variant
,
}
fn
main
()
{}