]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/default-method-supertrait-vtable.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / default-method-supertrait-vtable.rs
index b5790269d90ce70c05940648c5a1b9bf7420b582..727cada21fa66549304cf788e1fbed9b4c3841d5 100644 (file)
@@ -7,6 +7,8 @@
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
+//
+// ignore-lexer-test FIXME #15877
 
 
 // Tests that we can call a function bounded over a supertrait from
@@ -19,7 +21,7 @@ trait Y {
 }
 
 
-trait Z: Y {
+trait Z: Y + Sized {
     fn x(self) -> int {
         require_y(self)
     }
@@ -31,6 +33,6 @@ fn y(self) -> int { self }
 
 impl Z for int {}
 
-fn main() {
+pub fn main() {
     assert_eq!(12.x(), 12);
 }