Update tests
This commit is contained in:
parent
1afbf3e4b1
commit
bb6bcaa1de
5 changed files with 5 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
error[E0015]: cannot call non-const closure in constant functions
|
||||
--> $DIR/unstable-const-fn-in-libcore.rs:23:26
|
||||
--> $DIR/unstable-const-fn-in-libcore.rs:22:26
|
||||
|
|
||||
LL | Opt::None => f(),
|
||||
| ^^^
|
||||
|
|
@ -11,7 +11,7 @@ LL | const fn unwrap_or_else<F: FnOnce() -> T + ~const std::ops::FnOnce<()>>
|
|||
| +++++++++++++++++++++++++++++
|
||||
|
||||
error[E0493]: destructors cannot be evaluated at compile-time
|
||||
--> $DIR/unstable-const-fn-in-libcore.rs:18:53
|
||||
--> $DIR/unstable-const-fn-in-libcore.rs:17:53
|
||||
|
|
||||
LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
|
||||
| ^ constant functions cannot evaluate destructors
|
||||
|
|
@ -20,7 +20,7 @@ LL | }
|
|||
| - value is dropped here
|
||||
|
||||
error[E0493]: destructors cannot be evaluated at compile-time
|
||||
--> $DIR/unstable-const-fn-in-libcore.rs:18:47
|
||||
--> $DIR/unstable-const-fn-in-libcore.rs:17:47
|
||||
|
|
||||
LL | const fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
|
||||
| ^^^^ constant functions cannot evaluate destructors
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#![feature(const_impl_trait)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
type Bar = impl Send;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error: `impl Send` cannot be used in patterns
|
||||
--> $DIR/structural-match-no-leak.rs:15:9
|
||||
--> $DIR/structural-match-no-leak.rs:14:9
|
||||
|
|
||||
LL | LEAK_FREE => (),
|
||||
| ^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#![feature(const_impl_trait)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
type Foo = impl Send;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
error: `impl Send` cannot be used in patterns
|
||||
--> $DIR/structural-match.rs:16:9
|
||||
--> $DIR/structural-match.rs:15:9
|
||||
|
|
||||
LL | VALUE => (),
|
||||
| ^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue