From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../const-generics/generic_const_exprs/function-call.stderr | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/ui/const-generics/generic_const_exprs/function-call.stderr (limited to 'tests/ui/const-generics/generic_const_exprs/function-call.stderr') diff --git a/tests/ui/const-generics/generic_const_exprs/function-call.stderr b/tests/ui/const-generics/generic_const_exprs/function-call.stderr new file mode 100644 index 000000000..84abfe578 --- /dev/null +++ b/tests/ui/const-generics/generic_const_exprs/function-call.stderr @@ -0,0 +1,12 @@ +warning: cannot use constants which depend on generic parameters in types + --> $DIR/function-call.rs:15:17 + | +LL | let _ = [0; foo::()]; + | ^^^^^^^^^^ + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! + = note: for more information, see issue #76200 + = note: `#[warn(const_evaluatable_unchecked)]` on by default + +warning: 1 warning emitted + -- cgit v1.2.3