blob: d471b8f149d8a4e2aaa19d6c45c308c763ad4878 [file] [log] [blame]
// 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;
}