blob: f40dc27cb4c6f219af56b71f7bd18f7d6a613572 [file] [log] [blame]
#![feature(const_trait_impl, effects)]
#[const_trait]
pub trait MyTrait {
fn defaulted_func(&self) {}
fn func(self);
}
pub struct NonConst;
impl MyTrait for NonConst {
fn func(self) {
}
}
pub struct Const;
impl const MyTrait for Const {
fn func(self) {
}
}