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

#[const_trait]
trait Bar {}

fn foo<T>() where T: ~const Bar {}
//~^ ERROR `~const` is not allowed

fn main() {}