]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/auxiliary/issue-18502.rs
Rollup merge of #99156 - lcnr:omoe-wa, r=wesleywiser
[rust.git] / src / test / ui-fulldeps / auxiliary / issue-18502.rs
1 #![crate_type="lib"]
2
3 struct Foo;
4 // This is the ICE trigger
5 struct Formatter;
6
7 trait Show {
8     fn fmt(&self);
9 }
10
11 impl Show for Foo {
12     fn fmt(&self) {}
13 }
14
15 fn bar<T>(f: extern "Rust" fn(&T), t: &T) { }
16
17 // ICE requirement: this has to be marked as inline
18 #[inline]
19 pub fn baz() {
20     bar(Show::fmt, &Foo);
21 }