Skip to content

Commit

Permalink
Fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsteinn committed Jul 25, 2024
1 parent 12e23c4 commit b8d3c62
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let _4: [T; 3];
let mut _5: usize;
let mut _6: bool;
let _10: !;
let mut _10: !;
scope 1 {
debug v => _2;
let _7: &T;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let _4: [T; 3];
let mut _5: usize;
let mut _6: bool;
let _10: !;
let mut _10: !;
scope 1 {
debug v => _2;
let _7: &T;
Expand Down
14 changes: 14 additions & 0 deletions tests/ui/never_type/issue-5500-1.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
error[E0308]: mismatched types
--> $DIR/issue-5500-1.rs:10:18
|
LL | _iter.node = &panic!()
| ---------- ^^^^^^^^^ expected `&usize`, found `&!`
| |
| expected due to the type of this binding
|
= note: expected reference `&usize`
found reference `&!`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
4 changes: 1 addition & 3 deletions tests/ui/proc-macro/quote-debug.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ fn main() {
(iter.next(), iter.next()) {
lit.set_span(crate::Span::recover_proc_macro_span(2));
lit
} else {
{ ::core::panicking::unreachable_cold_explicit(); }
}
} else { ::core::panicking::unreachable_cold_explicit() }
})),
crate::TokenStream::from(crate::TokenTree::Punct(crate::Punct::new(';',
crate::Spacing::Alone)))].iter().cloned().collect::<crate::TokenStream>()
Expand Down

0 comments on commit b8d3c62

Please sign in to comment.