blob: 01921c140cbcf15a3ee21d18f71fefb6a381275e [file] [log] [blame] [edit]
//@ compile-flags: -Znext-solver
#![feature(const_trait_impl)]
#[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) {
}
}