blob: da0a9776fd40f976c87a823519a619a363a7aa4a (
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 `Arc<i32>` must be annotated with `#[derive(PartialEq, Eq)]`
fn main() {}
|