rust/tests/ui/const-generics/generic_const_exprs/issue-74713.rs

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

9 lines
170 B
Rust
Raw Normal View History

2022-07-12 00:21:09 -05:00
fn bug<'a>()
where
[(); { //~ ERROR mismatched types
2023-05-05 15:42:51 -05:00
let _: &'a (); //~ ERROR generic parameters may not be used in const operations
2022-07-12 00:21:09 -05:00
}]:
{}
fn main() {}