2021-07-10 02:58:16 -05:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
2022-03-16 04:49:54 -05:00
|
|
|
#[const_trait]
|
2021-07-10 02:58:16 -05:00
|
|
|
trait A {
|
2022-03-16 04:49:54 -05:00
|
|
|
#[const_trait] //~ ERROR attribute should be applied
|
|
|
|
fn foo(self);
|
2021-07-10 02:58:16 -05:00
|
|
|
}
|
|
|
|
|
2022-03-16 04:49:54 -05:00
|
|
|
#[const_trait] //~ ERROR attribute should be applied
|
2021-07-10 02:58:16 -05:00
|
|
|
fn main() {}
|