summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/dont-suggest-ufcs-for-const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/dont-suggest-ufcs-for-const.rs')
-rw-r--r--tests/ui/suggestions/dont-suggest-ufcs-for-const.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/suggestions/dont-suggest-ufcs-for-const.rs b/tests/ui/suggestions/dont-suggest-ufcs-for-const.rs
new file mode 100644
index 000000000..06cf243f1
--- /dev/null
+++ b/tests/ui/suggestions/dont-suggest-ufcs-for-const.rs
@@ -0,0 +1,4 @@
+fn main() {
+ 1_u32.MAX();
+ //~^ ERROR no method named `MAX` found for type `u32` in the current scope
+}