]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-46112.rs
Auto merge of #107303 - compiler-errors:intern-canonical-var-values, r=lcnr
[rust.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