2020-04-11 21:02:49 +02:00
|
|
|
#![feature(const_generics)]
|
2020-04-22 10:21:32 +02:00
|
|
|
//~^ WARN the feature `const_generics` is incomplete
|
2020-04-11 21:02:49 +02:00
|
|
|
|
|
|
|
trait A {}
|
|
|
|
struct B;
|
|
|
|
impl A for B {}
|
|
|
|
|
|
|
|
fn test<const T: &'static dyn A>() {
|
|
|
|
//~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]` to be used
|
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test::<{ &B }>();
|
|
|
|
}
|