blob: 5ca4c5d7863d26fa274f7386e0713e414e2470e9 (
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 dyn T {}
//~^ ERROR inherent impls cannot be const
fn main() {}
|