blob: 8e7a1fcd9959768c9a0f8eff1966e6756b9ede86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![feature(adt_const_params)]
#![allow(incomplete_features)]
use std::sync::Arc;
#[derive(PartialEq, Eq)]
enum Bar {
Bar(Arc<i32>)
}
fn test<const BAR: Bar>() {}
//~^ ERROR `Bar` must implement `ConstParamTy` to be used as the type of a const generic parameter
fn main() {}
|