blob: 7b8d8e1f9741d3a1d3816cdd77b83c41692ac034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---
tags:
- programming
- dictionary
---
This is when the compiler can infer (determine) the type of a variable by looking at the value being assigned.
For example:
```rust
let x = 1
# Equals
let x: u32 = 1;
```
But the Rust compiler infers that x is u32 because that is the default int type.
|