about summary refs log tree commit diff
path: root/tests/ui/custom-attribute-multisegment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/custom-attribute-multisegment.rs')
-rw-r--r--tests/ui/custom-attribute-multisegment.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/custom-attribute-multisegment.rs b/tests/ui/custom-attribute-multisegment.rs
new file mode 100644
index 00000000000..24349213902
--- /dev/null
+++ b/tests/ui/custom-attribute-multisegment.rs
@@ -0,0 +1,6 @@
+// Unresolved multi-segment attributes are not treated as custom.
+
+mod existent {}
+
+#[existent::nonexistent] //~ ERROR failed to resolve: could not find `nonexistent` in `existent`
+fn main() {}