We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2998564 commit b06a1ccCopy full SHA for b06a1cc
src/test/compile-fail/trait-privacy.rs
@@ -8,7 +8,7 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-#![feature(rustc_attrs)]
+#![feature(rustc_attrs, get_type_id)]
12
#![allow(dead_code)]
13
14
mod foo {
@@ -26,5 +26,10 @@ fn g() {
26
().f(); // Check that this does not trigger a privacy error
27
}
28
29
+fn f() {
30
+ let error = ::std::thread::spawn(|| {}).join().unwrap_err();
31
+ error.get_type_id(); // Regression test for #21670
32
+}
33
+
34
#[rustc_error]
35
fn main() {} //~ ERROR compilation successful
0 commit comments