mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
2ffb0de8cf
They pass fine. Only tests that required `extern crate rustc_*` or were marked `ignore-stage1` have been keep in fulldeps.
22 lines
311 B
Rust
22 lines
311 B
Rust
#![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);
|
|
}
|