Files
pplus-library/mojo/probes/dialect-register-passable.mojo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

12 lines
239 B
Mojo

# probe: deprecated in 0.26.2: is @register_passable("trivial") an error or a warning in 1.1.0?
@register_passable("trivial")
struct P:
var v: Int
def __init__(out self, v: Int):
self.v = v
def main():
print(P(1).v)