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