about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0771.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0771.rs')
-rw-r--r--tests/ui/error-codes/E0771.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0771.rs b/tests/ui/error-codes/E0771.rs
new file mode 100644
index 00000000000..67e7d106a1f
--- /dev/null
+++ b/tests/ui/error-codes/E0771.rs
@@ -0,0 +1,8 @@
+#![feature(adt_const_params)]
+//~^ WARN the feature `adt_const_params` is incomplete
+
+fn function_with_str<'a, const STRING: &'a str>() {} //~ ERROR E0771
+
+fn main() {
+    function_with_str::<"Hello, world!">()
+}