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