blob: 8bc35ab3d3795deb87f7ef8e0a3e00d309e05c60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// revisions: full min
#![cfg_attr(full, feature(adt_const_params))]
#![cfg_attr(full, allow(incomplete_features))]
trait A {}
struct B;
impl A for B {}
fn test<const T: &'static dyn A>() {
//[full]~^ ERROR `&'static (dyn A + 'static)` can't be used as a const parameter type
//[min]~^^ ERROR `&'static (dyn A + 'static)` is forbidden
unimplemented!()
}
fn main() {
test::<{ &B }>();
}
|