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