rust/tests/ui/lint/non-local-defs/trait-solver-overflow-123573.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
235 B
Rust
Raw Normal View History

//@ 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 {}
}