You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dependencies]
async-trait = "0.1.30"
tokio = { version = "0.2.20", features = ["full", "macros"] }
I expected to see this happen:
This code should not compile and should produce some errors along the following (as it does on stable):
error[E0277]: the size for values of type `dyn Transform2` cannot be known at compilation time
--> src/main.rs:30:21
|
30 | let transforms: Vec<dyn Transform2> = vec![Printer::new()];
| ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn Transform2`
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
= note: required by `std::vec::Vec`
... [TRUNCATED for brevity]...
Instead, this happened: error: internal compiler error: src/librustc_middle/ich/impls_ty.rs:94: StableHasher: unexpected region '_#10r
The rust compiler throws an internal error and panics.
I tried this code (using cargo test to run the test):
From my cargo.toml:
I expected to see this happen:
This code should not compile and should produce some errors along the following (as it does on stable):
Instead, this happened:
error: internal compiler error: src/librustc_middle/ich/impls_ty.rs:94: StableHasher: unexpected region '_#10r
The rust compiler throws an internal error and panics.
Meta
rustc --version --verbose
:rustc 1.45.0-nightly (46e85b432 2020-05-24) binary: rustc commit-hash: 46e85b4328fe18492894093c1092dfe509df4370 commit-date: 2020-05-24 host: x86_64-apple-darwin release: 1.45.0-nightly LLVM version: 10.0
Backtrace:
The text was updated successfully, but these errors were encountered: