summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mir/mir_static_subtype.rs
blob: d471b8f149d8a4e2aaa19d6c45c308c763ad4878 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
// Test that subtyping the body of a static doesn't cause an ICE.

fn foo(_ : &()) {}
static X: fn(&'static ()) = foo;

fn main() {
    let _ = X;
}