granite-rust/src/test/ui/allocator/not-an-allocator.stderr

44 lines
1.8 KiB
Text
Raw Normal View History

error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2018-12-25 08:56:47 -07:00
--> $DIR/not-an-allocator.rs:2:1
2018-08-08 14:28:26 +02:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 14:28:26 +02:00
LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 14:28:26 +02:00
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2018-12-25 08:56:47 -07:00
--> $DIR/not-an-allocator.rs:2:1
2018-08-08 14:28:26 +02:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 14:28:26 +02:00
LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 14:28:26 +02:00
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2018-12-25 08:56:47 -07:00
--> $DIR/not-an-allocator.rs:2:1
2018-08-08 14:28:26 +02:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 14:28:26 +02:00
LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 14:28:26 +02:00
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
2018-12-25 08:56:47 -07:00
--> $DIR/not-an-allocator.rs:2:1
2018-08-08 14:28:26 +02:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 14:28:26 +02:00
LL | static A: usize = 0;
| ^^^^^^^^^^^^^^^^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 14:28:26 +02:00
|
= note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 14:28:26 +02:00
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0277`.