mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
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
|
|
}
|