// run-pass #![allow(dead_code)] // Test that the compiler considers the 'static bound declared in the // trait. Issue #20890. // pretty-expanded FIXME #23616 trait Foo { type Value: 'static; fn dummy(&self) { } } fn require_static() {} fn takes_foo() { require_static::() } fn main() { }