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
http://is.gd/zCNViG
const VV: Vec<&'static str> = vec!("A" , "B").drain().map(|s| s).collect::<Vec<&'static str>>();
Obviously it is intended that this code produce a compiler error, but it also causes the compiler to panic with this message:
thread 'rustc' panicked at 'assertion failed: self.mode == Mode::Var', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/check_const.rs:232
The text was updated successfully, but these errors were encountered:
More likely than not a dupe of #25180 but I'll leave open as it's slightly different.
Sorry, something went wrong.
This does seem like a duplicate. Closing.
No branches or pull requests
http://is.gd/zCNViG
Obviously it is intended that this code produce a compiler error, but it also causes the compiler to panic with this message:
The text was updated successfully, but these errors were encountered: