summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-99080.rs
blob: 91f574f35b80bc9242effafdf79c4b05226ffc7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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 {}