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
I accidentally used vec![T] as a type instead of Vec<T>, and got an error: internal compiler error: unexpected panic. Without the #[derive(Debug)], rustc gives this error:
▸ RUST_BACKTRACE=1 rustc -Z unstable-options --pretty expanded nonsense.rs
nonsense.rs:3:16: 3:23 error: type macros are experimental (see issue #27336)
nonsense.rs:3 shouldBeVecT: vec![T]
^~~~~~~
nonsense.rs:3:16: 3:23 help: add #![feature(type_macros)] to the crate attributes to enable
error: aborting due to previous error
I accidentally used
vec![T]
as a type instead ofVec<T>
, and got anerror: internal compiler error: unexpected panic
. Without the#[derive(Debug)]
, rustc gives this error:but with it it panics.
Meta
The text was updated successfully, but these errors were encountered: