summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/const_prop_errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-eval/const_prop_errors.rs')
-rw-r--r--tests/ui/consts/const-eval/const_prop_errors.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/const_prop_errors.rs b/tests/ui/consts/const-eval/const_prop_errors.rs
new file mode 100644
index 000000000..f9a36d379
--- /dev/null
+++ b/tests/ui/consts/const-eval/const_prop_errors.rs
@@ -0,0 +1,14 @@
+// check-pass
+
+pub trait Foo {
+ fn foo(self) -> u32;
+}
+
+impl<T> Foo for T {
+ fn foo(self) -> u32 {
+ fn bar<T>() { loop {} }
+ bar::<T> as u32
+ }
+}
+
+fn main() {}