]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-5153.rs
Imported Upstream version 1.2.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-5153.rs
index da32408e199249a400013283b282e565a81e563f..b1d96f9b5277885dbb62dea04ef58c23e3b11f34 100644 (file)
@@ -17,6 +17,6 @@ impl Foo for isize {
 }
 
 fn main() {
-    (&5 as &Foo).foo();
+    (&5isize as &Foo).foo();
     //~^ ERROR: no method named `foo` found for type `&Foo` in the current scope
 }