mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
239 B
Rust
17 lines
239 B
Rust
// 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 {}
|