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
$ rustc foo.rs
foo.rs:2:16: 2:18 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
foo.rs:2 print!("{}", [].len());
^~
note: in expansion of format_args!
<std macros>:2:23: 2:75 note: expansion site
<std macros>:1:1: 3:2 note: in expansion of print!
foo.rs:2:3: 2:26 note: expansion site
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', ../rust/src/libsyntax/ast_util.rs:776
Here's the backtrace:
Note that this also triggers the error:
However, if I do this it works:
The text was updated successfully, but these errors were encountered: