]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-8153.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / issue-8153.rs
index 2af531135eca3915c474192526fb66544f379a20..ea7224939ce56364f20a2020ed987ef1a99b6056 100644 (file)
 struct Foo;
 
 trait Bar {
-    fn bar(&self) -> int;
+    fn bar(&self) -> isize;
 }
 
 impl Bar for Foo {
-    fn bar(&self) -> int {1}
-    fn bar(&self) -> int {2} //~ ERROR duplicate method
+    fn bar(&self) -> isize {1}
+    fn bar(&self) -> isize {2} //~ ERROR duplicate method
 }
 
 fn main() {