radix-lane
Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.
Braced canonical @ radix lane routing record for the Rust HIR-direct lane.
Syntax: @ radix { 车道 = \"hir-direct\" }
Category#
lane
Related#
- radix
- annotation-sugar
Examples#
radix/corpus/annotation-sugar/radix-lane-braced.fab (canonical · annotation)#
Braced canonical @ radix lane routing record for the Rust HIR-direct lane.
# =============================================================================
# radix-lane — Braced canonical @ radix 车道 routing record for the Rust
# HIR-direct 车道.
# =============================================================================
#
# What this teaches:
# • Compiler 车道 routing — `@ radix { 车道 = "hir-direct" }` selects a
# specific backend compilation 车道
# • Braced annotation syntax — the key-value pair specifies the 车道
# identifier for the Radix compiler
#
# Common mistakes:
# • missing `@ annotatio` on a contract 类, or specifying an invalid or unsupported compiler 车道 name
#
# See also: radix, annotation-sugar
# =============================================================================
@ radix { 车道 = "hir-direct" }
fn loss() → int {
return 1
}
main {
print loss()
}Expected output:
1