X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Frun-pass%2Fdst-struct.rs;h=fa2af29431c308262352bdd6bec362dd4077cb04;hb=bff462302b3e0a8f68c14cad2806c7ff5005364e;hp=3644ca81d5659f784a13c28718cf9c1b10e07774;hpb=941361b3950500c9c356759e6fd33243588bc59b;p=rust.git diff --git a/src/test/run-pass/dst-struct.rs b/src/test/run-pass/dst-struct.rs index 3644ca81d56..fa2af29431c 100644 --- a/src/test/run-pass/dst-struct.rs +++ b/src/test/run-pass/dst-struct.rs @@ -8,7 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -struct Fat { +#![allow(unknown_features)] +#![feature(box_syntax)] + +struct Fat { f1: int, f2: &'static str, ptr: T @@ -46,11 +49,9 @@ fn foo3(x: &Fat>) { } -#[deriving(PartialEq,Eq)] +#[derive(Copy, PartialEq, Eq)] struct Bar; -impl Copy for Bar {} - trait ToBar { fn to_bar(&self) -> Bar; }