15 lines
277 B
Rust
15 lines
277 B
Rust
//@ 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 {}
|
|
//~^ WARN non-local `impl` definition
|
|
}
|