]> git.lizzy.rs Git - rust.git/blob - tests/ui/mir/mir_static_subtype.rs
Rollup merge of #107015 - cuviper:ra-riscv64, r=Mark-Simulacrum
[rust.git] / tests / ui / mir / mir_static_subtype.rs
1 // run-pass
2 // Test that subtyping the body of a static doesn't cause an ICE.
3
4 fn foo(_ : &()) {}
5 static X: fn(&'static ()) = foo;
6
7 fn main() {
8     let _ = X;
9 }