mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 04:46:58 +00:00
Bless test outupt
This commit is contained in:
parent
7a0c66bad1
commit
2e412fc8e4
@ -1,9 +1,8 @@
|
|||||||
struct AlanTuring<T>(T);
|
struct AlanTuring<T>(T);
|
||||||
const fn no_rpit2() -> AlanTuring<impl std::fmt::Debug> {
|
const fn no_rpit2() -> AlanTuring<impl std::fmt::Debug> { //~ `impl Trait`
|
||||||
//~^ ERROR `impl Trait` in const fn is unstable
|
|
||||||
AlanTuring(0)
|
AlanTuring(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
const fn no_rpit() -> impl std::fmt::Debug {} //~ ERROR `impl Trait` in const fn is unstable
|
const fn no_rpit() -> impl std::fmt::Debug {} //~ `impl Trait`
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
error[E0723]: `impl Trait` in const fn is unstable
|
error[E0658]: `impl Trait` is not allowed in constant functions
|
||||||
--> $DIR/min_const_fn_impl_trait.rs:2:24
|
--> $DIR/min_const_fn_impl_trait.rs:2:24
|
||||||
|
|
|
|
||||||
LL | const fn no_rpit2() -> AlanTuring<impl std::fmt::Debug> {
|
LL | const fn no_rpit2() -> AlanTuring<impl std::fmt::Debug> {
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
|
= note: see issue #77463 <https://github.com/rust-lang/rust/issues/77463> for more information
|
||||||
= help: add `#![feature(const_fn)]` to the crate attributes to enable
|
= help: add `#![feature(const_fn_impl_trait)]` to the crate attributes to enable
|
||||||
|
|
||||||
error[E0723]: `impl Trait` in const fn is unstable
|
error[E0658]: `impl Trait` is not allowed in constant functions
|
||||||
--> $DIR/min_const_fn_impl_trait.rs:7:23
|
--> $DIR/min_const_fn_impl_trait.rs:6:23
|
||||||
|
|
|
|
||||||
LL | const fn no_rpit() -> impl std::fmt::Debug {}
|
LL | const fn no_rpit() -> impl std::fmt::Debug {}
|
||||||
| ^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
|
||||||
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
|
= note: see issue #77463 <https://github.com/rust-lang/rust/issues/77463> for more information
|
||||||
= help: add `#![feature(const_fn)]` to the crate attributes to enable
|
= help: add `#![feature(const_fn_impl_trait)]` to the crate attributes to enable
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0723`.
|
For more information about this error, try `rustc --explain E0658`.
|
||||||
|
Loading…
Reference in New Issue
Block a user