rust/tests/ui/allocator/not-an-allocator.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
2.1 KiB
Plaintext
Raw Normal View History

error[E0277]: the trait bound `usize: GlobalAlloc` is not satisfied
--> $DIR/not-an-allocator.rs:2:11
2018-08-08 07:28:26 -05:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 07:28:26 -05:00
LL | static A: usize = 0;
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 07:28:26 -05:00
|
= help: the trait `GlobalAlloc` is implemented for `System`
= note: this error originates in the attribute macro `global_allocator` (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: GlobalAlloc` is not satisfied
--> $DIR/not-an-allocator.rs:2:11
2018-08-08 07:28:26 -05:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 07:28:26 -05:00
LL | static A: usize = 0;
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 07:28:26 -05:00
|
= help: the trait `GlobalAlloc` is implemented for `System`
= note: this error originates in the attribute macro `global_allocator` (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: GlobalAlloc` is not satisfied
--> $DIR/not-an-allocator.rs:2:11
2018-08-08 07:28:26 -05:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 07:28:26 -05:00
LL | static A: usize = 0;
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 07:28:26 -05:00
|
= help: the trait `GlobalAlloc` is implemented for `System`
= note: this error originates in the attribute macro `global_allocator` (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: GlobalAlloc` is not satisfied
--> $DIR/not-an-allocator.rs:2:11
2018-08-08 07:28:26 -05:00
|
LL | #[global_allocator]
| ------------------- in this procedural macro expansion
2018-08-08 07:28:26 -05:00
LL | static A: usize = 0;
| ^^^^^ the trait `GlobalAlloc` is not implemented for `usize`
2018-08-08 07:28:26 -05:00
|
= help: the trait `GlobalAlloc` is implemented for `System`
= note: this error originates in the attribute macro `global_allocator` (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`.