]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/inherent-impl.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / inherent-impl.rs
1 #![feature(const_trait_impl)]
2 #![feature(const_trait_bound_opt_out)]
3 #![allow(incomplete_features)]
4 #![allow(bare_trait_objects)]
5
6 struct S;
7 trait T {}
8
9 impl const S {}
10 //~^ ERROR inherent impls cannot be `const`
11
12 impl const T {}
13 //~^ ERROR inherent impls cannot be `const`
14
15 fn main() {}