about summary refs log tree commit diff
path: root/tests/ui/lint/non-local-defs/trait-solver-overflow-123573.rs
blob: 6e8014f10f85a2d00a129b73381aa5c7896b2848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-pass
//@ edition:2021

// https://github.com/rust-lang/rust/issues/123573#issue-2229428739

pub trait Test {}

impl<'a, T: 'a> Test for &[T] where &'a T: Test {}

fn main() {
    struct Local {}
    impl Test for &Local {}
}