WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a204b41

Browse files
committed
Update codegen tests for 1.92 Rust
1 parent 7d108d2 commit a204b41

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/codegen/fail/subscription/argument_non_input_type.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
warning: unused variable: `obj`
2-
--> fail/subscription/argument_non_input_type.rs:17:24
3-
|
4-
17 | async fn id(&self, obj: ObjA) -> BoxStream<'static, &'static str> {
5-
| ^^^ help: if this is intentional, prefix it with an underscore: `_obj`
6-
|
7-
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
8-
91
error[E0277]: the trait bound `ObjA: IsInputType<__S>` is not satisfied
102
--> fail/subscription/argument_non_input_type.rs:17:29
113
|
@@ -105,3 +97,11 @@ help: the trait `FromInputValue<__S>` is not implemented for `ObjA`
10597
`[T; N]` implements `FromInputValue<S>`
10698
`bool` implements `FromInputValue<__S>`
10799
and $N others
100+
101+
warning: unused variable: `obj`
102+
--> fail/subscription/argument_non_input_type.rs:17:24
103+
|
104+
17 | async fn id(&self, obj: ObjA) -> BoxStream<'static, &'static str> {
105+
| ^^^ help: if this is intentional, prefix it with an underscore: `_obj`
106+
|
107+
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

0 commit comments

Comments
 (0)