]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-2760.rs
Merge pull request #1 from rust-lang/master
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-2760.rs
1 // run-pass
2
3 #![allow(
4     unused_variables,
5     clippy::blacklisted_name,
6     clippy::needless_pass_by_value,
7     dead_code
8 )]
9
10 /// This should not compile-fail with:
11 ///
12 ///      error[E0277]: the trait bound `T: Foo` is not satisfied
13 // See rust-lang/rust-clippy#2760.
14
15 trait Foo {
16     type Bar;
17 }
18
19 struct Baz<T: Foo> {
20     bar: T::Bar,
21 }
22
23 fn take<T: Foo>(baz: Baz<T>) {}
24
25 fn main() {}