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

40 lines
1.8 KiB
Plaintext
Raw Normal View History

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