summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/inherent-impl.rs
blob: afd0d137bb4aadf8565a12443527e43e2ba5a760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(const_trait_impl)]
#![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() {}