rust/tests/ui/traits/issue-79458.rs

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

11 lines
247 B
Rust
Raw Normal View History

2020-12-01 13:29:03 -06:00
// 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() {}