]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/inherent-impl.rs
Auto merge of #105651 - tgross35:once-cell-inline, r=m-ou-se
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / inherent-impl.rs
1 #![feature(const_trait_impl)]
2 #![allow(bare_trait_objects)]
3
4 struct S;
5 trait T {}
6
7 impl const S {}
8 //~^ ERROR inherent impls cannot be `const`
9
10 impl const T {}
11 //~^ ERROR inherent impls cannot be `const`
12
13 fn main() {}