]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/auxiliary/cross-crate.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / rfc-2632-const-trait-impl / auxiliary / cross-crate.rs
1 #![feature(const_trait_impl)]
2
3 #[const_trait]
4 pub trait MyTrait {
5     fn defaulted_func(&self) {}
6     fn func(self);
7 }
8
9 pub struct NonConst;
10
11 impl MyTrait for NonConst {
12     fn func(self) {
13
14     }
15 }
16
17 pub struct Const;
18
19 impl const MyTrait for Const {
20     fn func(self) {
21
22     }
23 }