]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / ui / error-codes / E0277.rs
1 use std::path::Path;
2
3 trait Foo {
4     fn bar(&self);
5 }
6
7 fn some_func<T: Foo>(foo: T) {
8     foo.bar();
9 }
10
11 fn f(p: Path) { }
12 //~^ ERROR the size for values of type
13
14 fn main() {
15     some_func(5i32);
16     //~^ ERROR the trait bound `i32: Foo` is not satisfied
17 }