Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
traits
/
const-traits
/
attr-misuse.rs
blob: 01ac74feff74dfe25fe6a573319715e2f3cefbf2 [
file
] [
log
] [
blame
]
#![
feature
(
const_trait_impl
)]
#[
const_trait
]
trait
A
{
#[
const_trait
]
//~ ERROR attribute should be applied
fn
foo
(
self
);
}
#[
const_trait
]
//~ ERROR attribute should be applied
fn
main
()
{}