]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-99080.rs
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / ui / suggestions / issue-99080.rs
1 // aux-build:meow.rs
2
3 extern crate meow;
4
5 use meow::Meow;
6
7 fn needs_meow<T: Meow>(t: T) {}
8
9 fn main() {
10     needs_meow(1usize);
11     //~^ ERROR the trait bound `usize: Meow` is not satisfied
12 }
13
14 struct LocalMeow;
15
16 impl Meow for LocalMeow {}