summaryrefslogtreecommitdiff
path: root/tests/ui/unpretty
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-02-07 20:22:42 +0000
committerMichael Goulet <michael@errs.io>2023-02-07 21:00:12 +0000
commit56bf28d4f4236f19f962868f181b15b174d041c4 (patch)
tree00af39dd515abad5f98fb887bf9fcc7354d07e6a /tests/ui/unpretty
parente1eaa2d5d4d1f5b7b89561a940718058d414e89c (diff)
downloadrust-56bf28d4f4236f19f962868f181b15b174d041c4.tar.gz
Expand const-if-const trait bounds correctly
Diffstat (limited to 'tests/ui/unpretty')
-rw-r--r--tests/ui/unpretty/ast-const-trait-bound.rs4
-rw-r--r--tests/ui/unpretty/ast-const-trait-bound.stdout4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/unpretty/ast-const-trait-bound.rs b/tests/ui/unpretty/ast-const-trait-bound.rs
new file mode 100644
index 00000000000..dbcba7871ec
--- /dev/null
+++ b/tests/ui/unpretty/ast-const-trait-bound.rs
@@ -0,0 +1,4 @@
+// compile-flags: -Zunpretty=normal
+// check-pass
+
+fn foo() where T: ~const Bar {}
diff --git a/tests/ui/unpretty/ast-const-trait-bound.stdout b/tests/ui/unpretty/ast-const-trait-bound.stdout
new file mode 100644
index 00000000000..dbcba7871ec
--- /dev/null
+++ b/tests/ui/unpretty/ast-const-trait-bound.stdout
@@ -0,0 +1,4 @@
+// compile-flags: -Zunpretty=normal
+// check-pass
+
+fn foo() where T: ~const Bar {}