2022-08-17 21:50:59 +02:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
|
#![feature(trait_alias)]
|
|
|
|
|
|
|
|
|
|
trait Bar<const N: usize> {}
|
|
|
|
|
|
|
|
|
|
trait BB = Bar<{ 2 + 1 }>;
|
|
|
|
|
|
|
|
|
|
fn foo(x: &dyn BB) {}
|
2024-11-20 14:19:36 -08:00
|
|
|
//~^ ERROR the trait alias `BB` is not dyn compatible [E0038]
|
2022-08-17 21:50:59 +02:00
|
|
|
|
|
|
|
|
fn main() {}
|