diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-11-19 21:27:57 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-11-19 22:16:42 +0100 |
| commit | 6ee0dd97e3c5b353f4798b43bb956b9c9ccb5d64 (patch) | |
| tree | 382e6991d4a7c7a24502d283a7083994e5d43d44 /library/std/src/prelude | |
| parent | 2a434286a96d61e9f55a3144004beec48206bb29 (diff) | |
| download | rust-6ee0dd97e3c5b353f4798b43bb956b9c9ccb5d64.tar.gz rust-6ee0dd97e3c5b353f4798b43bb956b9c9ccb5d64.zip | |
Add unstable `type_ascribe` macro
This macro serves as a placeholder for future type ascription syntax to make sure that the semantic implementation keeps working.
Diffstat (limited to 'library/std/src/prelude')
| -rw-r--r-- | library/std/src/prelude/v1.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs index d5ac16e6b94..4ab4229598e 100644 --- a/library/std/src/prelude/v1.rs +++ b/library/std/src/prelude/v1.rs @@ -85,6 +85,14 @@ pub use core::prelude::v1::cfg_accessible; )] pub use core::prelude::v1::cfg_eval; +// Do not `doc(no_inline)` either. +#[unstable( + feature = "type_ascription", + issue = "23416", + reason = "placeholder syntax for type ascription" +)] +pub use core::prelude::v1::type_ascribe; + // The file so far is equivalent to src/libcore/prelude/v1.rs, // and below to src/liballoc/prelude.rs. // Those files are duplicated rather than using glob imports |
