]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0276.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0276.rs
1 trait Foo {
2     fn foo<T>(x: T);
3 }
4
5 impl Foo for bool {
6     fn foo<T>(x: T) where T: Copy {} //~ ERROR E0276
7 }
8
9 fn main() {
10 }