Open source : Linux, Firefox, Windows, Deno, …
Industrie : AWS, Dropbox, Cloudflare, Discord, Datadog, …
error[E0382]: borrow of moved value: `s1`
--> /Users/josephbarbier/l/talk/src/rencontresR2026/script.rs:5:20
|
2 | let s1 = String::from("hello");
| -- move occurs because `s1` has type `String`, which does not implement the `Copy` trait
3 | let s2 = s1;
| -- value moved here
4 |
5 | println!("{}", s1);
| ^^ value borrowed here after move
|
help: consider cloning the value if the performance cost is acceptable
|
3 | let s2 = s1.clone();
| ++++++++error[E0277]: cannot add `&str` to `i32`
--> /Users/josephbarbier/l/talk/src/rencontresR2026/script2.rs:5:20
|
5 | let result = x + y;
| ^ no implementation for `i32 + &str`
|
= help: the trait `Add<&str>` is not implemented for `i32`
= help: the following other types implement trait `Add<Rhs>`:
`&i32` implements `Add<i32>`
`&i32` implements `Add`
`i32` implements `Add<&i32>`
`i32` implements `Add`
uv: package/project managerruff: linter & formatterty: type checkerpyrefly: type checkerpolars: data manipulationpydantic: data validationmonty: interpreterprek: pre-commit hookArk: kernel R (utilisé dans Positron IDE)Air: formatter et serveur de langageJarl: linteryaml12: YAML parserpolars: R interface à polarsOn compile avec cargo build, et ensuite:
Merci !
J’ai dit des choses fausses ?
J’ai dit des choses pertinentes ?
Autres ?
joseph@ysunflower.com
Comment on appelle Rust depuis R