]>
git.proxmox.com Git - rustc.git/blob - src/tools/rust-analyzer/crates/hir-ty/src/tests/diagnostics.rs
f00fa97294877f8d65343e5bcb87c23ef3a1157c
4 fn function_return_type_mismatch_1() {
7 fn test() -> &'static str {
9 //^ expected &str, got i32
16 fn function_return_type_mismatch_2() {
19 fn test(x: bool) -> &'static str {
22 //^ expected &str, got i32
31 fn function_return_type_mismatch_3() {
34 fn test(x: bool) -> &'static str {
39 //^ expected &str, got i32
46 fn function_return_type_mismatch_4() {
49 fn test(x: bool) -> &'static str {
54 //^ expected &str, got i32
62 fn function_return_type_mismatch_5() {
65 fn test(x: bool) -> &'static str {
68 //^ expected &str, got i32