-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
The tests/trybuild/entities/length_not_integer.rs test fails on current nightly rustc:
EXPECTED:
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
error[E0308]: mismatched types
--> tests/trybuild/entities/length_not_integer.rs:10:38
|
10 | let entities = entities!((A, B); 1.5);
| ^^^ expected `usize`, found floating-point number
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
ACTUAL OUTPUT:
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
error[E0308]: mismatched types
--> tests/trybuild/entities/length_not_integer.rs:10:38
|
10 | let entities = entities!((A, B); 1.5);
| ------------------^^^-
| | |
| | expected `usize`, found floating-point number
| arguments to this function are incorrect
|
note: function defined here
--> $RUST/alloc/src/vec/mod.rs
|
| pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> {
| ^^^^^^^^^
error[E0308]: mismatched types
--> tests/trybuild/entities/length_not_integer.rs:10:38
|
10 | let entities = entities!((A, B); 1.5);
| ------------------^^^-
| | |
| | expected `usize`, found floating-point number
| arguments to this function are incorrect
|
note: function defined here
--> $RUST/alloc/src/vec/mod.rs
|
| pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> {
| ^^^^^^^^^
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
This is caused by a recent change that is currently on nightly. The trybuild expected output should be changed to match this format.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels