about summary refs log tree commit diff
path: root/tests/ui/typeck/issue-46112.rs
blob: a3fe03b17c109ec913c5ded8415654fae7d9c98b (plain)
1
2
3
4
5
6
7
8
9
// Issue 46112: An extern crate pub re-exporting libcore was causing
// paths rooted from `std` to be misrendered in the diagnostic output.

//@ 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(())); }
//~^ ERROR mismatched types