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
165 B
Rust
Raw Normal View History

2022-07-12 05:21:09 +00:00
fn bug<'a>()
where
[(); { //~ ERROR mismatched types
let _: &'a (); //~ ERROR a non-static lifetime is not allowed in a `const`
}]:
{}
fn main() {}