// error-pattern:expected: 15, given: 14
-#[deriving_eq]
+#[deriving(Eq)]
struct Point { x : int }
fn main() {
-#[deriving_eq]
+#[deriving(Eq)]
struct Point { x : int }
fn main() {
#[auto_encode]
#[auto_decode]
-#[deriving_eq]
+#[deriving(Eq)]
struct Spanned<T> {
lo: uint,
hi: uint,
}
}
-#[deriving_eq]
+#[deriving(Eq)]
struct p {
x: int,
y: int,
-#[deriving_clone]
+#[deriving(Clone)]
enum E {
A,
B(()),
-#[deriving_clone]
+#[deriving(Clone)]
enum E<T,U> {
A(T),
B(T,U),
-#[deriving_clone]
+#[deriving(Clone)]
struct S<T> {
foo: (),
bar: (),
-#[deriving_clone]
+#[deriving(Clone)]
struct S<T>(T, ());
fn main() {}
-#[deriving_clone]
+#[deriving(Clone)]
struct S {
_int: int,
_i8: i8,
-#[deriving_clone]
+#[deriving(Clone)]
struct S((), ());
fn main() {}
type task_id = int;
-#[deriving_eq]
+#[deriving(Eq)]
pub enum Task {
TaskHandle(task_id)
}
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_eq]
+#[deriving(Eq)]
enum Foo {
Bar,
Baz,
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_eq]
+#[deriving(Eq)]
enum Foo {
Bar(int, int),
Baz(float, float)
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_iter_bytes]
+#[deriving(IterBytes)]
enum Foo {
Bar(int, char),
Baz(char, int)
}
-#[deriving_iter_bytes]
+#[deriving(IterBytes)]
enum A {
B,
C,
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_iter_bytes]
+#[deriving(IterBytes)]
struct Foo {
x: int,
y: int,
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_eq]
+#[deriving(Eq)]
struct Foo;
pub fn main() {
-#[deriving_eq]
+#[deriving(Eq)]
enum S {
X { x: int, y: int },
Y
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_eq]
+#[deriving(Eq)]
struct Foo(int, int, ~str);
pub fn main() {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_eq]
+#[deriving(Eq)]
struct Foo {
x: int,
y: int,
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_eq]
-#[deriving_iter_bytes]
+#[deriving(Eq)]
+#[deriving(IterBytes)]
struct Foo<T> {
x: int,
y: T,
// xfail-test --- broken on 32-bit ABIs! (#5347)
-#[deriving_eq]
+#[deriving(Eq)]
struct TwoU64s {
one: u64, two: u64
}
// xfail-test --- broken on 32-bit ABIs! (#5347)
-#[deriving_eq]
+#[deriving(Eq)]
struct TwoU64s {
one: u64, two: u64
}
payload: Option<T>
}
- #[deriving_eq]
+ #[deriving(Eq)]
pub enum state {
empty,
full,
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#[deriving_eq]
+#[deriving(Eq)]
struct Bike {
name: ~str,
}
// except according to those terms.
-#[deriving_eq]
+#[deriving(Eq)]
enum t { a, b(~str), }
fn make(i: int) -> t {