summary refs log tree commit diff
path: root/src/test/ui/rfc-2632-const-trait-impl/inherent-impl.rs
blob: 04123a532bd9faaf386bab563e5a96e022b1bd87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(const_trait_impl)]
#![feature(const_trait_bound_opt_out)]
#![allow(incomplete_features)]
#![allow(bare_trait_objects)]

struct S;
trait T {}

impl const S {}
//~^ ERROR inherent impls cannot be `const`

impl const T {}
//~^ ERROR inherent impls cannot be `const`

fn main() {}