Closed
Description
The below code emits unexpectedly panicked in 1.34.0-nightly(2019-02-27).
let a: Vec<&str, "aaa"> = Vec::new();
Error message:
error: internal compiler error: src/librustc_typeck/collect.rs:1321: unexpected const parent in type_of_def_id(): Ty(type(Vec<&str, >))
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:620:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
error: aborting due to previous error
Playground link:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=916dc66418a31a3a104e88b0e070b6c8