File: rewrite.rs

package info (click to toggle)
rust-gat-std 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 132 kB
  • sloc: makefile: 4
file content (17 lines) | stat: -rw-r--r-- 241 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use gat_std::gatify;

#[gatify]
fn main() {
    for a in 0..10 {
        println!("{a}");
    }

    let mut b = vec![0, 1, 2];
    println!("{}", &b[0]);

    b[1] = 2;

    let first = &mut b[0];
    *first = 1;
    println!("{:?}", b);
}