Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
structs-enums
/
class-str-field.rs
blob: 24f648afc90b186d731eb0f8157ac9216c43bd1b [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
#![
allow
(
non_camel_case_types
)]
struct
cat
{
name
:
String
,
}
fn
cat
(
in_name
:
String
)
->
cat
{
cat
{
name
:
in_name
}
}
pub
fn
main
()
{
let
_nyan
=
cat
(
"nyan"
.
to_string
());
}