Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bb6bcaa

Browse files
committed
Update tests
1 parent 1afbf3e commit bb6bcaa

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

src/test/ui/consts/unstable-const-fn-in-libcore.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0015]: cannot call non-const closure in constant functions
2-
--> $DIR/unstable-const-fn-in-libcore.rs:23:26
2+
--> $DIR/unstable-const-fn-in-libcore.rs:22:26
33
|
44
LL | Opt::None => f(),
55
| ^^^
@@ -11,7 +11,7 @@ LL | const fn unwrap_or_else<F: FnOnce() -> T + ~const std::ops::FnOnce<()>>
1111
| +++++++++++++++++++++++++++++
1212

1313
error[E0493]: destructors cannot be evaluated at compile-time
14-
--> $DIR/unstable-const-fn-in-libcore.rs:18:53
14+
--> $DIR/unstable-const-fn-in-libcore.rs:17:53
1515
|
1616
LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
1717
| ^ constant functions cannot evaluate destructors
@@ -20,7 +20,7 @@ LL | }
2020
| - value is dropped here
2121

2222
error[E0493]: destructors cannot be evaluated at compile-time
23-
--> $DIR/unstable-const-fn-in-libcore.rs:18:47
23+
--> $DIR/unstable-const-fn-in-libcore.rs:17:47
2424
|
2525
LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
2626
| ^^^^ constant functions cannot evaluate destructors

src/test/ui/type-alias-impl-trait/structural-match-no-leak.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(const_impl_trait)]
21
#![feature(type_alias_impl_trait)]
32

43
type Bar = impl Send;

src/test/ui/type-alias-impl-trait/structural-match-no-leak.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: `impl Send` cannot be used in patterns
2-
--> $DIR/structural-match-no-leak.rs:15:9
2+
--> $DIR/structural-match-no-leak.rs:14:9
33
|
44
LL | LEAK_FREE => (),
55
| ^^^^^^^^^

src/test/ui/type-alias-impl-trait/structural-match.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(const_impl_trait)]
21
#![feature(type_alias_impl_trait)]
32

43
type Foo = impl Send;

src/test/ui/type-alias-impl-trait/structural-match.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: `impl Send` cannot be used in patterns
2-
--> $DIR/structural-match.rs:16:9
2+
--> $DIR/structural-match.rs:15:9
33
|
44
LL | VALUE => (),
55
| ^^^^^

0 commit comments

Comments
 (0)