]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-46112.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / ui / typeck / issue-46112.rs
1 // Issue 46112: An extern crate pub re-exporting libcore was causing
2 // paths rooted from `std` to be misrendered in the diagnostic output.
3
4 // ignore-windows
5 // aux-build:xcrate-issue-46112-rexport-core.rs
6
7 extern crate xcrate_issue_46112_rexport_core;
8 fn test(r: Result<Option<()>, &'static str>) { }
9 fn main() { test(Ok(())); }
10 //~^ mismatched types