]> git.proxmox.com Git - rustc.git/blob - tests/ui/typeck/issue-46112.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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