2022-05-24 06:01:11 -05:00
|
|
|
#![feature(adt_const_params)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
use std::sync::Arc;
|
|
|
|
|
|
|
|
#[derive(PartialEq, Eq)]
|
|
|
|
enum Bar {
|
|
|
|
Bar(Arc<i32>)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test<const BAR: Bar>() {}
|
2023-05-16 23:05:46 -05:00
|
|
|
//~^ ERROR `Bar` must implement `ConstParamTy` to be used as the type of a const generic parameter
|
2022-05-24 06:01:11 -05:00
|
|
|
|
|
|
|
fn main() {}
|