about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-102946.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/issue-102946.rs')
-rw-r--r--tests/ui/resolve/issue-102946.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-102946.rs b/tests/ui/resolve/issue-102946.rs
new file mode 100644
index 00000000000..c6feca6f32f
--- /dev/null
+++ b/tests/ui/resolve/issue-102946.rs
@@ -0,0 +1,7 @@
+impl Error for str::Utf8Error {
+    //~^ ERROR cannot find trait `Error` in this scope
+    //~| ERROR ambiguous associated type
+    fn description(&self)  {}
+}
+
+fn main() {}