]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/inherent-impl.rs
Rollup merge of #106754 - compiler-errors:ty-infer-method-is-confusing, r=lcnr
[rust.git] / tests / 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() {}