]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/auxiliary/cross-crate.rs
Auto merge of #86757 - JohnTitor:rollup-acevhz7, r=JohnTitor
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / auxiliary / cross-crate.rs
1 #![feature(const_trait_impl)]
2 #![allow(incomplete_features)]
3
4 pub trait MyTrait {
5     fn func(self);
6 }
7
8 pub struct NonConst;
9
10 impl MyTrait for NonConst {
11     fn func(self) {
12
13     }
14 }
15
16 pub struct Const;
17
18 impl const MyTrait for Const {
19     fn func(self) {
20
21     }
22 }