]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277.rs
Auto merge of #67758 - ssomers:testing_range, r=Mark-Simulacrum
[rust.git] / src / test / ui / error-codes / E0277.rs
1 // ignore-cloudabi no std::path
2
3 use std::path::Path;
4
5 trait Foo {
6     fn bar(&self);
7 }
8
9 fn some_func<T: Foo>(foo: T) {
10     foo.bar();
11 }
12
13 fn f(p: Path) { }
14 //~^ ERROR the size for values of type
15
16 fn main() {
17     some_func(5i32);
18     //~^ ERROR the trait bound `i32: Foo` is not satisfied
19 }