Skip to content

Commit 3272b63

Browse files
committed
Moved test to ui
1 parent 4b67324 commit 3272b63

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
error[E0434]: can't capture dynamic environment in a fn item
2+
--> $DIR/type-dependent-def-issue-49241.rs:13:22
3+
|
4+
LL | const l: usize = v.count(); //~ ERROR can't capture dynamic environment in a fn item
5+
| ^
6+
|
7+
= help: use the `|| { ... }` closure form instead
8+
9+
error[E0080]: constant evaluation error
10+
--> $DIR/type-dependent-def-issue-49241.rs:14:18
11+
|
12+
LL | let s: [u32; l] = v.into_iter().collect(); //~ ERROR constant evaluation error
13+
| ^ encountered constants with type errors, stopping evaluation
14+
15+
error: aborting due to 2 previous errors
16+
17+
Some errors occurred: E0080, E0434.
18+
For more information about an error, try `rustc --explain E0080`.

0 commit comments

Comments
 (0)