![rust compiler output:
```
error[E0425]: cannot find function `len` in this scope
--> /home/gh-compiler-errors/test.rs:3:13
|
3 | let x = len([1, 2, 3]);
| ^^^ not found in this scope
|
help: use the `.` operator to call the method `len` on `&[{integer}]`
|
3 - let x = len([1, 2, 3]);
3 + let x = [1, 2, 3].len();
|
```](https://pbs.twimg.com/media/FeSfz41VQAAfWhq.png?name=small&format=webp)
ALT rust compiler output: ``` error[E0425]: cannot find function `len` in this scope --> /home/gh-compiler-errors/test.rs:3:13 | 3 | let x = len([1, 2, 3]); | ^^^ not found in this scope | help: use the `.` operator to call the method `len` on `&[{integer}]` | 3 - let x = len([1, 2, 3]); 3 + let x = [1, 2, 3].len(); | ```

ALT Rust code: ``` trait Trait { fn hello<'a: 'a>(&'a self); } impl Trait for () { fn hello<'b: 'b>(&'b self) { println!("Hello, world"); } } trait Foo { fn bar<'c: 'c>(&'c self) -> impl Trait; } impl Foo for () { fn bar<'d: 'd>(&'d self) -> impl Trait { () } } fn call_generically<T: Foo>(t: T) { t.bar().hello(); } fn main() { call_generically(()); } ```
![Rust error output:
```
error[E0277]: `()` is not an iterator
--> /home/gh-compiler-errors/test.rs:2:20
|
2 | Iterator::next(&mut ());
| -------------- ^^^^^^^ `()` is not an iterator
| |
| required by a bound introduced by this call
|
= help: the trait `Iterator` is not implemented for `()`
error[E0277]: `()` is not an iterator
--> /home/gh-compiler-errors/test.rs:2:5
|
2 | Iterator::next(&mut ());
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
|
= help: the trait `Iterator` is not implemented for `()`
error[E0277]: `()` is not an iterator
--> /home/gh-compiler-errors/test.rs:2:5
|
2 | Iterator::next(&mut ());
| ^^^^^^^^^^^^^^ `()` is not an iterator
|
= help: the trait `Iterator` is not implemented for `()`
```](https://pbs.twimg.com/media/FaTTDdzUsAAhw1k.png?name=small&format=webp)
ALT Rust error output: ``` error[E0277]: `()` is not an iterator --> /home/gh-compiler-errors/test.rs:2:20 | 2 | Iterator::next(&mut ()); | -------------- ^^^^^^^ `()` is not an iterator | | | required by a bound introduced by this call | = help: the trait `Iterator` is not implemented for `()` error[E0277]: `()` is not an iterator --> /home/gh-compiler-errors/test.rs:2:5 | 2 | Iterator::next(&mut ()); | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator | = help: the trait `Iterator` is not implemented for `()` error[E0277]: `()` is not an iterator --> /home/gh-compiler-errors/test.rs:2:5 | 2 | Iterator::next(&mut ()); | ^^^^^^^^^^^^^^ `()` is not an iterator | = help: the trait `Iterator` is not implemented for `()` ```






![rust code:
```
fn main() {
let x = len([1, 2, 3]);
}
```](https://pbs.twimg.com/media/FeSffy5VQAAVFND.png?name=small&format=webp)





![Before: Terminal output
```
$ rustc +nightly ~/test.rs
error[E0277]: the trait bound `(): Trait` is not satisfied
--> /home/gh-compiler-errors/test.rs:8:13
|
8 | let _ = Foo { t: () };
| ^^^ the trait `Trait` is not implemented for `()`
|
```](https://pbs.twimg.com/media/FaVpeI8UsAA1C1y.jpg?name=small&format=webp)
![After: Terminal output
```
$ rustc +dev ~/test.rs
error[E0277]: the trait bound `(): Trait` is not satisfied
--> /home/gh-compiler-errors/test.rs:8:19
|
8 | let _ = Foo { t: () };
| ^^^^^ the trait `Trait` is not implemented for `()`
|
```](https://pbs.twimg.com/media/FaVpsVLVEAArv5g.jpg?name=small&format=webp)
