rust/tests/ui/const-generics/issues/issue-97278.rs
2023-06-01 18:21:42 +00:00

15 lines
283 B
Rust

#![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() {}