diff options
Diffstat (limited to 'src/test/ui/error-codes/E0277.rs')
-rw-r--r-- | src/test/ui/error-codes/E0277.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/error-codes/E0277.rs b/src/test/ui/error-codes/E0277.rs deleted file mode 100644 index f0de4e3de..000000000 --- a/src/test/ui/error-codes/E0277.rs +++ /dev/null @@ -1,17 +0,0 @@ -use std::path::Path; - -trait Foo { - fn bar(&self); -} - -fn some_func<T: Foo>(foo: T) { - foo.bar(); -} - -fn f(p: Path) { } -//~^ ERROR the size for values of type - -fn main() { - some_func(5i32); - //~^ ERROR the trait bound `i32: Foo` is not satisfied -} |