Skip to content

Commit 466fc4a

Browse files
committed
rustdoc: update with --bless and change expected errors
1 parent 9b5115f commit 466fc4a

8 files changed

+352
-30
lines changed

tests/rustdoc-ui/invalid-toplevel-const.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
2-
--> $DIR/invalid-toplevel-const.rs:2:31
2+
--> $DIR/invalid-toplevel-const.rs:1:31
33
|
44
LL | static CONST: Option<dyn Fn(& _)> = None;
55
| ^ not allowed in type signatures

tests/rustdoc-ui/issue-105742.rs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,37 @@
11
// compile-flags: -Znormalize-docs
2-
32
use std::ops::Index;
43

54
pub fn next<'a, T>(s: &'a mut dyn SVec<Item = T, Output = T>) {
5+
//~^ERROR
6+
//~|ERROR
7+
//~|ERROR
68
let _ = s;
79
}
810

911
pub trait SVec: Index<
1012
<Self as SVec>::Item,
13+
//~^ERROR
14+
//~|ERROR
15+
//~|ERROR
16+
//~|ERROR
1117
Output = <Index<<Self as SVec>::Item,
18+
//~^ERROR
19+
//~|ERROR
20+
//~|ERROR
21+
//~|ERROR
1222
Output = <Self as SVec>::Item> as SVec>::Item,
23+
//~^ERROR
24+
//~|ERROR
25+
//~|ERROR
26+
//~|ERROR
27+
//~|ERROR
28+
//~|ERROR
29+
//~|ERROR
30+
//~|ERROR
1331
> {
1432
type Item<'a, T>;
1533

1634
fn len(&self) -> <Self as SVec>::Item;
17-
//~^ ERROR
18-
//~^^ ERROR
35+
//~^ERROR
36+
//~|ERROR
1937
}

0 commit comments

Comments
 (0)