blob: 2a741ba87a980957e337143885379e9b47eed37a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//[full] check-pass
// revisions: full min
#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]
trait Trait<const NAME: &'static str> {
//[min]~^ ERROR `&'static str` is forbidden
type Assoc;
}
impl Trait<"0"> for () {
type Assoc = ();
}
fn main() {
let _: <() as Trait<"0">>::Assoc = ();
}
|