2020-08-26 18:44:00 +08:00
|
|
|
// revisions: full min
|
2021-08-30 10:59:53 +02:00
|
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
2020-08-26 18:44:00 +08:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-04-11 21:02:49 +02:00
|
|
|
|
|
|
|
trait A {}
|
|
|
|
struct B;
|
|
|
|
impl A for B {}
|
|
|
|
|
|
|
|
fn test<const T: &'static dyn A>() {
|
2022-04-08 19:10:07 +01:00
|
|
|
//[full]~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]` to be used
|
2020-08-31 18:35:04 +08:00
|
|
|
//[min]~^^ ERROR `&'static (dyn A + 'static)` is forbidden
|
2020-04-11 21:02:49 +02:00
|
|
|
unimplemented!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test::<{ &B }>();
|
|
|
|
}
|