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>() {
|
2023-05-16 23:05:46 -05:00
|
|
|
//[full]~^ ERROR `&'static (dyn A + 'static)` can't be used as a const parameter type
|
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 }>();
|
|
|
|
}
|