summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs')
-rw-r--r--src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs b/src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs
new file mode 100644
index 000000000..2486ae009
--- /dev/null
+++ b/src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs
@@ -0,0 +1,14 @@
+// Test that we use fully-qualified type names in error messages.
+
+use std::option::Option;
+
+fn bar(x: usize) -> Option<usize> {
+ return x;
+ //~^ ERROR mismatched types
+ //~| expected enum `Option<usize>`
+ //~| found type `usize`
+ //~| expected enum `Option`, found `usize`
+}
+
+fn main() {
+}