We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trybuild
nightly
The tests/trybuild/entities/length_not_integer.rs test fails on current nightly rustc:
tests/trybuild/entities/length_not_integer.rs
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.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The
tests/trybuild/entities/length_not_integer.rs
test fails on currentnightly
rustc
:This is caused by a recent change that is currently on nightly. The
trybuild
expected output should be changed to match this format.The text was updated successfully, but these errors were encountered: