]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/issue-79458.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[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() {}