Add regression test
This commit is contained in:
parent
2998564615
commit
b06a1cc760
1 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(rustc_attrs, get_type_id)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
mod foo {
|
||||
|
@ -26,5 +26,10 @@ fn g() {
|
|||
().f(); // Check that this does not trigger a privacy error
|
||||
}
|
||||
|
||||
fn f() {
|
||||
let error = ::std::thread::spawn(|| {}).join().unwrap_err();
|
||||
error.get_type_id(); // Regression test for #21670
|
||||
}
|
||||
|
||||
#[rustc_error]
|
||||
fn main() {} //~ ERROR compilation successful
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue