]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-38226.rs
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
[rust.git] / src / test / ui / issues / issue-38226.rs
1 // run-pass
2 // This test makes sure that we don't run into a linker error because of the
3 // middle::reachable pass missing trait methods with default impls.
4
5 // aux-build:issue-38226-aux.rs
6
7 // Need -Cno-prepopulate-passes to really disable inlining, otherwise the faulty
8 // code gets optimized out:
9 // compile-flags: -Cno-prepopulate-passes -Cpasses=name-anon-globals
10
11 extern crate issue_38226_aux;
12
13 fn main() {
14     issue_38226_aux::foo::<()>();
15 }