summary refs log tree commit diff
path: root/tests/ui/inference/ice-cannot-relate-region-109178.rs
blob: 2e3953646fff7abd6ee4ea19967595fd53f2fa8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// test for ice #109178  cannot relate region: LUB(ReErased, ReError)

#![allow(incomplete_features)]
#![crate_type = "lib"]
#![feature(adt_const_params, unsized_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