mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
11 lines
247 B
Rust
11 lines
247 B
Rust
|
// Negative implementations should not be shown in trait suggestions.
|
||
|
// This is a regression test of #79458.
|
||
|
|
||
|
#[derive(Clone)]
|
||
|
struct Foo<'a, T> {
|
||
|
bar: &'a mut T
|
||
|
//~^ ERROR the trait bound `&mut T: Clone` is not satisfied
|
||
|
}
|
||
|
|
||
|
fn main() {}
|