diff options
Diffstat (limited to 'tests/ui/inference/ambiguous_type_parameter.stderr')
-rw-r--r-- | tests/ui/inference/ambiguous_type_parameter.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/inference/ambiguous_type_parameter.stderr b/tests/ui/inference/ambiguous_type_parameter.stderr new file mode 100644 index 000000000..9cbe221de --- /dev/null +++ b/tests/ui/inference/ambiguous_type_parameter.stderr @@ -0,0 +1,14 @@ +error[E0282]: type annotations needed + --> $DIR/ambiguous_type_parameter.rs:16:19 + | +LL | InMemoryStore.get_raw(&String::default()); + | ^^^^^^^ + | +help: try using a fully qualified path to specify the expected types + | +LL | <InMemoryStore as Store<String, HashMap<K, String>>>::get_raw(&InMemoryStore, &String::default()); + | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ~ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0282`. |