2021-06-23 05:37:26 -05:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
2022-03-16 04:49:54 -05:00
|
|
|
#[const_trait]
|
2021-06-23 05:37:26 -05:00
|
|
|
trait Tr {
|
|
|
|
fn req(&self);
|
|
|
|
|
2021-07-03 23:24:20 -05:00
|
|
|
fn default() {}
|
2021-06-23 05:37:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
2021-07-03 23:24:20 -05:00
|
|
|
impl const Tr for u16 {
|
|
|
|
fn default() {}
|
2022-03-16 04:49:54 -05:00
|
|
|
} //~^^ ERROR not all trait items implemented
|
2021-07-03 23:24:20 -05:00
|
|
|
|
|
|
|
|
2021-06-23 05:37:26 -05:00
|
|
|
fn main() {}
|