summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-46112.rs
blob: 0cdd2c27ff73e034370bfd1b61ab291b6f06ce31 (plain)
1
2
3
4
5
6
7
8
9
10
// Issue 46112: An extern crate pub re-exporting libcore was causing
// paths rooted from `std` to be misrendered in the diagnostic output.

// ignore-windows
// aux-build:xcrate-issue-46112-rexport-core.rs

extern crate xcrate_issue_46112_rexport_core;
fn test(r: Result<Option<()>, &'static str>) { }
fn main() { test(Ok(())); }
//~^ mismatched types