2016-04-26 12:51:14 -05:00
|
|
|
#![crate_type="lib"]
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
// This is the ICE trigger
|
|
|
|
struct Formatter;
|
|
|
|
|
|
|
|
trait Show {
|
|
|
|
fn fmt(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Show for Foo {
|
|
|
|
fn fmt(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar<T>(f: extern "Rust" fn(&T), t: &T) { }
|
|
|
|
|
|
|
|
// ICE requirement: this has to be marked as inline
|
|
|
|
#[inline]
|
|
|
|
pub fn baz() {
|
|
|
|
bar(Show::fmt, &Foo);
|
2015-03-18 16:05:24 -05:00
|
|
|
}
|