1 // aux-build:noexporttypelib.rs
3 extern crate noexporttypelib;
6 // Here, the type returned by foo() is not exported.
7 // This used to cause internal errors when serializing
8 // because the def_id associated with the type was
9 // not convertible to a path.
10 let x: isize = noexporttypelib::foo();
11 //~^ ERROR mismatched types
12 //~| expected type `isize`
13 //~| found enum `Option<isize>`
14 //~| expected `isize`, found enum `Option`