From fb37366e605d27a9b046417eb143ff6f327816af Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Wed, 15 Jan 2025 13:52:44 -0800 Subject: [PATCH] Update snapshot test --- .../fail_operation_method_self_type.stderr | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/turbopack/crates/turbo-tasks-macros-tests/tests/function/fail_operation_method_self_type.stderr b/turbopack/crates/turbo-tasks-macros-tests/tests/function/fail_operation_method_self_type.stderr index 8fbffa3a48f54..66e5c197ef23c 100644 --- a/turbopack/crates/turbo-tasks-macros-tests/tests/function/fail_operation_method_self_type.stderr +++ b/turbopack/crates/turbo-tasks-macros-tests/tests/function/fail_operation_method_self_type.stderr @@ -4,6 +4,24 @@ error: methods taking `self` are not supported with `operation` 13 | fn arbitrary_self_type(self: OperationVc) -> Vc<()> { | ^^^^^^^^^^^^^^^^^^^^^^^ +error[E0277]: the trait bound `fn(OperationVc) -> Vc<()> {Foobar::arbitrary_self_type_turbo_tasks_function_inline}: turbo_tasks::task::function::IntoTaskFnWithThis<_, _, _>` is not satisfied + --> tests/function/fail_operation_method_self_type.rs:10:1 + | +10 | #[turbo_tasks::value_impl] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | + = help: the trait `turbo_tasks::task::function::TaskFnInputFunctionWithThis<_, _, _>` is not implemented for fn item `fn(OperationVc) -> Vc<()> {Foobar::arbitrary_self_type_turbo_tasks_function_inline}` + = note: required for `fn(OperationVc) -> Vc<()> {Foobar::arbitrary_self_type_turbo_tasks_function_inline}` to implement `turbo_tasks::task::function::IntoTaskFnWithThis<_, _, _>` +note: required by a bound in `NativeFunction::new_method` + --> $WORKSPACE/turbopack/crates/turbo-tasks/src/native_function.rs + | + | pub fn new_method( + | ---------- required by a bound in this associated function +... + | I: IntoTaskFnWithThis, + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `NativeFunction::new_method` + = note: this error originates in the attribute macro `turbo_tasks::value_impl` (in Nightly builds, run with -Z macro-backtrace for more info) + error[E0307]: invalid `self` parameter type: `OperationVc` --> tests/function/fail_operation_method_self_type.rs:13:34 |