Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
issue-52820.fixed
blob: 4c4593cf3b92b355fba040fa99df277e6af0cb8a [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
#![allow(dead_code)]
struct
Bravery
{
guts
:
String
,
brains
:
String
,
}
fn main
()
{
let
guts
=
"mettle"
;
let
_
=
Bravery
{
guts
:
guts
.
to_string
(),
//~ ERROR mismatched types
brains
:
guts
.
to_string
(),
//~ ERROR mismatched types
};
}