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