about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs/double-opaque-parent-predicates.rs
blob: e48d559aa32704f7ce36a67d6a1f8ff5622c3a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-pass

#![feature(generic_const_exprs)]
//~^ WARN the feature `generic_const_exprs` is incomplete and may not be safe to use

pub fn y<'a, U: 'a>() -> impl IntoIterator<Item = impl IntoIterator<Item = [u8; { 1 + 2 }]> + 'a> {
    [[[1, 2, 3]]]
}
// Make sure that the `predicates_of` for `{ 1 + 2 }` don't mention the duplicated lifetimes of
// the *outer* iterator. Whether they should mention the duplicated lifetimes of the *inner*
// iterator are another question, but not really something we need to answer immediately.

fn main() {}