about summary refs log tree commit diff
path: root/src/test/compile-fail/allocator
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-04-03 17:12:57 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-12 22:53:12 +0200
commit86753ce1cc520bfe50ae89f09ec47f313ce900eb (patch)
tree5611452336d4e8dbf10c2f21b9516d46743092f8 /src/test/compile-fail/allocator
parenteb69593f73be1e41d9e2ef065010a47478c14924 (diff)
Use the GlobalAlloc trait for #[global_allocator]
Diffstat (limited to 'src/test/compile-fail/allocator')
-rw-r--r--src/test/compile-fail/allocator/not-an-allocator.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/test/compile-fail/allocator/not-an-allocator.rs b/src/test/compile-fail/allocator/not-an-allocator.rs
index e4301435063..140cad22f34 100644
--- a/src/test/compile-fail/allocator/not-an-allocator.rs
+++ b/src/test/compile-fail/allocator/not-an-allocator.rs
@@ -12,15 +12,9 @@
 
 #[global_allocator]
 static A: usize = 0;
-//~^ the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
-//~| the trait bound `&usize:
+//~^ the trait bound `usize:
+//~| the trait bound `usize:
+//~| the trait bound `usize:
+//~| the trait bound `usize:
 
 fn main() {}