rust/tests/ui/suggestions/issue-99080.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
240 B
Rust
Raw Normal View History

//@ aux-build:meow.rs
extern crate meow;
use meow::Meow;
fn needs_meow<T: Meow>(t: T) {}
fn main() {
needs_meow(1usize);
//~^ ERROR the trait bound `usize: Meow` is not satisfied
}
struct LocalMeow;
impl Meow for LocalMeow {}