rust/tests/ui/const-generics/issues/issue-97278.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
255 B
Rust
Raw Normal View History

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