Skip to content

Commit ea11fe5

Browse files
committed
Update to Rust 1.76
1 parent ea46ef3 commit ea11fe5

File tree

72 files changed

+119
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+119
-102
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- name: Install Rust
1313
run: |
1414
rustup set profile minimal
15-
rustup toolchain install 1.75 -c rust-docs
16-
rustup default 1.75
15+
rustup toolchain install 1.76 -c rust-docs
16+
rustup default 1.76
1717
- name: Install mdbook
1818
run: |
1919
mkdir bin

listings/ch02-guessing-game-tutorial/listing-02-02/Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

listings/ch02-guessing-game-tutorial/listing-02-04/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ error[E0308]: mismatched types
1818
= note: expected reference `&String`
1919
found reference `&{integer}`
2020
note: method defined here
21-
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/cmp.rs:811:8
21+
--> /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/cmp.rs:814:8
2222

2323
For more information about this error, try `rustc --explain E0308`.
24-
error: could not compile `guessing_game` (bin "guessing_game") due to previous error
24+
error: could not compile `guessing_game` (bin "guessing_game") due to 1 previous error

listings/ch03-common-programming-concepts/no-listing-01-variables-are-immutable/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ error[E0384]: cannot assign twice to immutable variable `x`
1313
| ^^^^^ cannot assign twice to immutable variable
1414

1515
For more information about this error, try `rustc --explain E0384`.
16-
error: could not compile `variables` (bin "variables") due to previous error
16+
error: could not compile `variables` (bin "variables") due to 1 previous error

listings/ch03-common-programming-concepts/no-listing-05-mut-cant-change-types/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ help: try removing the method call
1515
|
1616

1717
For more information about this error, try `rustc --explain E0308`.
18-
error: could not compile `variables` (bin "variables") due to previous error
18+
error: could not compile `variables` (bin "variables") due to 1 previous error

listings/ch03-common-programming-concepts/no-listing-19-statements-vs-expressions/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ help: remove these parentheses
2222
|
2323

2424
warning: `functions` (bin "functions") generated 1 warning
25-
error: could not compile `functions` (bin "functions") due to previous error; 1 warning emitted
25+
error: could not compile `functions` (bin "functions") due to 1 previous error; 1 warning emitted

listings/ch03-common-programming-concepts/no-listing-23-statements-dont-return-values/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ error[E0308]: mismatched types
1111
| - help: remove this semicolon to return this value
1212

1313
For more information about this error, try `rustc --explain E0308`.
14-
error: could not compile `functions` (bin "functions") due to previous error
14+
error: could not compile `functions` (bin "functions") due to 1 previous error

listings/ch03-common-programming-concepts/no-listing-28-if-condition-must-be-bool/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ error[E0308]: mismatched types
77
| ^^^^^^ expected `bool`, found integer
88

99
For more information about this error, try `rustc --explain E0308`.
10-
error: could not compile `branches` (bin "branches") due to previous error
10+
error: could not compile `branches` (bin "branches") due to 1 previous error

listings/ch03-common-programming-concepts/no-listing-31-arms-must-return-same-type/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ error[E0308]: `if` and `else` have incompatible types
99
| expected because of this
1010

1111
For more information about this error, try `rustc --explain E0308`.
12-
error: could not compile `branches` (bin "branches") due to previous error
12+
error: could not compile `branches` (bin "branches") due to 1 previous error

listings/ch03-common-programming-concepts/output-only-01-no-type-annotations/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ help: consider giving `guess` an explicit type
1313
| ++++++++++++
1414

1515
For more information about this error, try `rustc --explain E0284`.
16-
error: could not compile `no_type_annotations` (bin "no_type_annotations") due to previous error
16+
error: could not compile `no_type_annotations` (bin "no_type_annotations") due to 1 previous error

listings/ch04-understanding-ownership/listing-04-06/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ help: consider changing this to be a mutable reference
1212
| +++
1313

1414
For more information about this error, try `rustc --explain E0596`.
15-
error: could not compile `ownership` (bin "ownership") due to previous error
15+
error: could not compile `ownership` (bin "ownership") due to 1 previous error

listings/ch04-understanding-ownership/no-listing-04-cant-use-after-move/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ help: consider cloning the value if the performance cost is acceptable
1818
| ++++++++
1919

2020
For more information about this error, try `rustc --explain E0382`.
21-
error: could not compile `ownership` (bin "ownership") due to previous error
21+
error: could not compile `ownership` (bin "ownership") due to 1 previous error

listings/ch04-understanding-ownership/no-listing-10-multiple-mut-not-allowed/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ error[E0499]: cannot borrow `s` as mutable more than once at a time
1212
| -- first borrow later used here
1313

1414
For more information about this error, try `rustc --explain E0499`.
15-
error: could not compile `ownership` (bin "ownership") due to previous error
15+
error: could not compile `ownership` (bin "ownership") due to 1 previous error

listings/ch04-understanding-ownership/no-listing-12-immutable-and-mutable-not-allowed/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immuta
1313
| -- immutable borrow later used here
1414

1515
For more information about this error, try `rustc --explain E0502`.
16-
error: could not compile `ownership` (bin "ownership") due to previous error
16+
error: could not compile `ownership` (bin "ownership") due to 1 previous error

listings/ch04-understanding-ownership/no-listing-14-dangling-reference/output.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ error[E0106]: missing lifetime specifier
77
| ^ expected named lifetime parameter
88
|
99
= help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
10-
help: consider using the `'static` lifetime
10+
help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
1111
|
1212
5 | fn dangle() -> &'static String {
1313
| +++++++
14+
help: instead, you are more likely to want to return an owned value
15+
|
16+
5 - fn dangle() -> &String {
17+
5 + fn dangle() -> String {
18+
|
1419

1520
For more information about this error, try `rustc --explain E0106`.
16-
error: could not compile `ownership` (bin "ownership") due to previous error
21+
error: could not compile `ownership` (bin "ownership") due to 1 previous error

listings/ch04-understanding-ownership/no-listing-19-slice-error/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immuta
1313
| ---- immutable borrow later used here
1414

1515
For more information about this error, try `rustc --explain E0502`.
16-
error: could not compile `ownership` (bin "ownership") due to previous error
16+
error: could not compile `ownership` (bin "ownership") due to 1 previous error

listings/ch05-using-structs-to-structure-related-data/listing-05-11/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ error[E0277]: `Rectangle` doesn't implement `std::fmt::Display`
1111
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
1212

1313
For more information about this error, try `rustc --explain E0277`.
14-
error: could not compile `rectangles` (bin "rectangles") due to previous error
14+
error: could not compile `rectangles` (bin "rectangles") due to 1 previous error

listings/ch05-using-structs-to-structure-related-data/no-listing-05-dbg-macro/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ $ cargo run
22
Compiling rectangles v0.1.0 (file:///projects/rectangles)
33
Finished dev [unoptimized + debuginfo] target(s) in 0.61s
44
Running `target/debug/rectangles`
5-
[src/main.rs:10] 30 * scale = 60
6-
[src/main.rs:14] &rect1 = Rectangle {
5+
[src/main.rs:10:16] 30 * scale = 60
6+
[src/main.rs:14:5] &rect1 = Rectangle {
77
width: 60,
88
height: 50,
99
}

listings/ch05-using-structs-to-structure-related-data/output-only-01-debug/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ help: consider annotating `Rectangle` with `#[derive(Debug)]`
1616
|
1717

1818
For more information about this error, try `rustc --explain E0277`.
19-
error: could not compile `rectangles` (bin "rectangles") due to previous error
19+
error: could not compile `rectangles` (bin "rectangles") due to 1 previous error

listings/ch06-enums-and-pattern-matching/no-listing-07-cant-use-option-directly/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ error[E0277]: cannot add `Option<i8>` to `i8`
1414
<&i8 as Add<&i8>>
1515

1616
For more information about this error, try `rustc --explain E0277`.
17-
error: could not compile `enums` (bin "enums") due to previous error
17+
error: could not compile `enums` (bin "enums") due to 1 previous error

listings/ch06-enums-and-pattern-matching/no-listing-10-non-exhaustive-match/output.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ error[E0004]: non-exhaustive patterns: `None` not covered
77
| ^ pattern `None` not covered
88
|
99
note: `Option<i32>` defined here
10-
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:569:1
11-
::: /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/option.rs:573:5
10+
--> /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/option.rs:570:1
11+
::: /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/option.rs:574:5
1212
|
1313
= note: not covered
1414
= note: the matched value is of type `Option<i32>`
@@ -19,4 +19,4 @@ help: ensure that all possible cases are being handled by adding a match arm wit
1919
|
2020

2121
For more information about this error, try `rustc --explain E0004`.
22-
error: could not compile `enums` (bin "enums") due to previous error
22+
error: could not compile `enums` (bin "enums") due to 1 previous error

listings/ch07-managing-growing-projects/listing-07-12/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ warning: unused import: `crate::front_of_house::hosting`
2121

2222
For more information about this error, try `rustc --explain E0433`.
2323
warning: `restaurant` (lib) generated 1 warning
24-
error: could not compile `restaurant` (lib) due to previous error; 1 warning emitted
24+
error: could not compile `restaurant` (lib) due to 1 previous error; 1 warning emitted

listings/ch08-common-collections/listing-08-06/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immuta
1313
| ------- immutable borrow later used here
1414

1515
For more information about this error, try `rustc --explain E0502`.
16-
error: could not compile `collections` (bin "collections") due to previous error
16+
error: could not compile `collections` (bin "collections") due to 1 previous error

listings/ch08-common-collections/listing-08-19/output.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
$ cargo run
22
Compiling collections v0.1.0 (file:///projects/collections)
33
error[E0277]: the type `String` cannot be indexed by `{integer}`
4-
--> src/main.rs:3:13
4+
--> src/main.rs:3:16
55
|
66
3 | let h = s1[0];
7-
| ^^^^^ `String` cannot be indexed by `{integer}`
7+
| ^ `String` cannot be indexed by `{integer}`
88
|
99
= help: the trait `Index<{integer}>` is not implemented for `String`
1010
= help: the following other types implement trait `Index<Idx>`:
@@ -16,4 +16,4 @@ error[E0277]: the type `String` cannot be indexed by `{integer}`
1616
<String as Index<RangeToInclusive<usize>>>
1717

1818
For more information about this error, try `rustc --explain E0277`.
19-
error: could not compile `collections` (bin "collections") due to previous error
19+
error: could not compile `collections` (bin "collections") due to 1 previous error

listings/ch09-error-handling/listing-09-10/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ error[E0277]: the `?` operator can only be used in a function that returns `Resu
1111
= help: the trait `FromResidual<Result<Infallible, std::io::Error>>` is not implemented for `()`
1212

1313
For more information about this error, try `rustc --explain E0277`.
14-
error: could not compile `error-handling` (bin "error-handling") due to previous error
14+
error: could not compile `error-handling` (bin "error-handling") due to 1 previous error

listings/ch10-generic-types-traits-and-lifetimes/listing-10-05/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ help: consider restricting type parameter `T`
1414
| ++++++++++++++++++++++
1515

1616
For more information about this error, try `rustc --explain E0369`.
17-
error: could not compile `chapter10` (bin "chapter10") due to previous error
17+
error: could not compile `chapter10` (bin "chapter10") due to 1 previous error

listings/ch10-generic-types-traits-and-lifetimes/listing-10-07/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ error[E0308]: mismatched types
77
| ^^^ expected integer, found floating-point number
88

99
For more information about this error, try `rustc --explain E0308`.
10-
error: could not compile `chapter10` (bin "chapter10") due to previous error
10+
error: could not compile `chapter10` (bin "chapter10") due to 1 previous error

listings/ch10-generic-types-traits-and-lifetimes/listing-10-16/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ error[E0597]: `x` does not live long enough
1414
| - borrow later used here
1515

1616
For more information about this error, try `rustc --explain E0597`.
17-
error: could not compile `chapter10` (bin "chapter10") due to previous error
17+
error: could not compile `chapter10` (bin "chapter10") due to 1 previous error

listings/ch10-generic-types-traits-and-lifetimes/listing-10-20/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ help: consider introducing a named lifetime parameter
1313
| ++++ ++ ++ ++
1414

1515
For more information about this error, try `rustc --explain E0106`.
16-
error: could not compile `chapter10` (bin "chapter10") due to previous error
16+
error: could not compile `chapter10` (bin "chapter10") due to 1 previous error

listings/ch10-generic-types-traits-and-lifetimes/listing-10-23/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ error[E0597]: `string2` does not live long enough
1313
| ------ borrow later used here
1414

1515
For more information about this error, try `rustc --explain E0597`.
16-
error: could not compile `chapter10` (bin "chapter10") due to previous error
16+
error: could not compile `chapter10` (bin "chapter10") due to 1 previous error

listings/ch10-generic-types-traits-and-lifetimes/no-listing-09-unrelated-lifetime/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ error[E0515]: cannot return value referencing local variable `result`
1010
| `result` is borrowed here
1111

1212
For more information about this error, try `rustc --explain E0515`.
13-
error: could not compile `chapter10` (bin "chapter10") due to previous error
13+
error: could not compile `chapter10` (bin "chapter10") due to 1 previous error
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
pub fn add(left: usize, right: usize) -> usize {
2+
left + right
3+
}
4+
15
#[cfg(test)]
26
mod tests {
7+
use super::*;
8+
39
#[test]
410
fn it_works() {
5-
let result = 2 + 2;
11+
let result = add(2, 2);
612
assert_eq!(result, 4);
713
}
814
}

listings/ch12-an-io-project/listing-12-01/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ $ cargo run
22
Compiling minigrep v0.1.0 (file:///projects/minigrep)
33
Finished dev [unoptimized + debuginfo] target(s) in 0.61s
44
Running `target/debug/minigrep`
5-
[src/main.rs:5] args = [
5+
[src/main.rs:5:5] args = [
66
"target/debug/minigrep",
77
]

listings/ch12-an-io-project/output-only-01-with-args/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $ cargo run -- needle haystack
22
Compiling minigrep v0.1.0 (file:///projects/minigrep)
33
Finished dev [unoptimized + debuginfo] target(s) in 1.57s
44
Running `target/debug/minigrep needle haystack`
5-
[src/main.rs:5] args = [
5+
[src/main.rs:5:5] args = [
66
"target/debug/minigrep",
77
"needle",
88
"haystack",

listings/ch12-an-io-project/output-only-02-missing-lifetimes/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ help: consider introducing a named lifetime parameter
1313
| ++++ ++ ++ ++
1414

1515
For more information about this error, try `rustc --explain E0106`.
16-
error: could not compile `minigrep` (lib) due to previous error
16+
error: could not compile `minigrep` (lib) due to 1 previous error

listings/ch13-functional-features/listing-13-03/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ note: closure parameter defined here
2323
| ^
2424

2525
For more information about this error, try `rustc --explain E0308`.
26-
error: could not compile `closure-example` (bin "closure-example") due to previous error
26+
error: could not compile `closure-example` (bin "closure-example") due to 1 previous error

listings/ch13-functional-features/listing-13-08/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ error[E0507]: cannot move out of `value`, a captured variable in an `FnMut` clos
1212
| ^^^^^ move occurs because `value` has type `String`, which does not implement the `Copy` trait
1313

1414
For more information about this error, try `rustc --explain E0507`.
15-
error: could not compile `rectangles` (bin "rectangles") due to previous error
15+
error: could not compile `rectangles` (bin "rectangles") due to 1 previous error
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
pub fn add(left: usize, right: usize) -> usize {
2+
left + right
3+
}
4+
15
#[cfg(test)]
26
mod tests {
7+
use super::*;
8+
39
#[test]
410
fn it_works() {
5-
let result = 2 + 2;
11+
let result = add(2, 2);
612
assert_eq!(result, 4);
713
}
814
}

listings/ch15-smart-pointers/listing-15-03/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
1414
| ++++ +
1515

1616
For more information about this error, try `rustc --explain E0072`.
17-
error: could not compile `cons-list` (bin "cons-list") due to previous error
17+
error: could not compile `cons-list` (bin "cons-list") due to 1 previous error

listings/ch15-smart-pointers/listing-15-09/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ error[E0614]: type `MyBox<{integer}>` cannot be dereferenced
77
| ^^
88

99
For more information about this error, try `rustc --explain E0614`.
10-
error: could not compile `deref-example` (bin "deref-example") due to previous error
10+
error: could not compile `deref-example` (bin "deref-example") due to 1 previous error

listings/ch15-smart-pointers/listing-15-15/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ help: consider using `drop` function
1212
| +++++ ~
1313

1414
For more information about this error, try `rustc --explain E0040`.
15-
error: could not compile `drop-example` (bin "drop-example") due to previous error
15+
error: could not compile `drop-example` (bin "drop-example") due to 1 previous error

listings/ch15-smart-pointers/listing-15-17/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ error[E0382]: use of moved value: `a`
1111
| ^ value used here after move
1212

1313
For more information about this error, try `rustc --explain E0382`.
14-
error: could not compile `cons-list` (bin "cons-list") due to previous error
14+
error: could not compile `cons-list` (bin "cons-list") due to 1 previous error

listings/ch15-smart-pointers/listing-15-21/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ help: consider changing this to be a mutable reference
1212
| ~~~~~~~~~
1313

1414
For more information about this error, try `rustc --explain E0596`.
15-
error: could not compile `limit-tracker` (lib test) due to previous error
15+
error: could not compile `limit-tracker` (lib test) due to 1 previous error

listings/ch15-smart-pointers/no-listing-01-cant-borrow-immutable-as-mutable/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ help: consider changing this to be mutable
1212
| +++
1313

1414
For more information about this error, try `rustc --explain E0596`.
15-
error: could not compile `borrowing` (bin "borrowing") due to previous error
15+
error: could not compile `borrowing` (bin "borrowing") due to 1 previous error

listings/ch15-smart-pointers/output-only-01-comparing-to-reference/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ error[E0277]: can't compare `{integer}` with `&{integer}`
2020
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
2121

2222
For more information about this error, try `rustc --explain E0277`.
23-
error: could not compile `deref-example` (bin "deref-example") due to previous error
23+
error: could not compile `deref-example` (bin "deref-example") due to 1 previous error

listings/ch16-fearless-concurrency/listing-16-03/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ help: to force the closure to take ownership of `v` (and any other referenced va
2222
| ++++
2323

2424
For more information about this error, try `rustc --explain E0373`.
25-
error: could not compile `threads` (bin "threads") due to previous error
25+
error: could not compile `threads` (bin "threads") due to 1 previous error

listings/ch16-fearless-concurrency/listing-16-09/output.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ help: consider cloning the value if the performance cost is acceptable
1717
| ++++++++
1818

1919
For more information about this error, try `rustc --explain E0382`.
20-
error: could not compile `message-passing` (bin "message-passing") due to previous error
20+
error: could not compile `message-passing` (bin "message-passing") due to 1 previous error

0 commit comments

Comments
 (0)