]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-79458.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / traits / issue-79458.rs
1 // Negative implementations should not be shown in trait suggestions.
2 // This is a regression test of #79458.
3
4 #[derive(Clone)]
5 struct Foo<'a, T> {
6     bar: &'a mut T
7     //~^ ERROR the trait bound `&mut T: Clone` is not satisfied
8 }
9
10 fn main() {}