]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277.rs
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[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 }