rust/tests/ui/rfc-2632-const-trait-impl/auxiliary/cross-crate.rs
2023-01-11 09:32:08 +00:00

24 lines
279 B
Rust

#![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) {
}
}