mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
847311e36f
Fixes #109178
15 lines
544 B
Rust
15 lines
544 B
Rust
// test for ice #109178 cannot relate region: LUB(ReErased, ReError)
|
|
|
|
#![allow(incomplete_features)]
|
|
#![crate_type = "lib"]
|
|
#![feature(adt_const_params, generic_const_exprs)]
|
|
|
|
struct Changes<const CHANGES: &[&'static str]>
|
|
//~^ ERROR `&` without an explicit lifetime name cannot be used here
|
|
where
|
|
[(); CHANGES.len()]:, {}
|
|
|
|
impl<const CHANGES: &[&str]> Changes<CHANGES> where [(); CHANGES.len()]: {}
|
|
//~^ ERROR `&` without an explicit lifetime name cannot be used here
|
|
//~^^ ERROR `&` without an explicit lifetime name cannot be used here
|