summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/impl-tilde-const-trait.rs
blob: 05b26465c5b0c395ba57e625bde6abb6a5b47161 (plain)
1
2
3
4
5
6
7
8
9
#![feature(const_trait_impl)]

struct S;
trait T {}

impl ~const T for S {}
//~^ ERROR expected a trait, found type

fn main() {}