55 lines
1.6 KiB
Rust
55 lines
1.6 KiB
Rust
#![feature(prelude_import)]
|
|
#[prelude_import]
|
|
use std::prelude::rust_2021::*;
|
|
#[macro_use]
|
|
extern crate std;
|
|
use std::io;
|
|
struct T {
|
|
name: String,
|
|
}
|
|
#[automatically_derived]
|
|
#[allow(unused_qualifications)]
|
|
impl ::core::fmt::Debug for T {
|
|
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
|
|
match *self {
|
|
T {
|
|
name: ref __self_0_0,
|
|
} => {
|
|
let debug_trait_builder = &mut ::core::fmt::Formatter::debug_struct(f, "T");
|
|
let _ =
|
|
::core::fmt::DebugStruct::field(debug_trait_builder, "name", &&(*__self_0_0));
|
|
::core::fmt::DebugStruct::finish(debug_trait_builder)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
fn parse(s: &String) -> T {
|
|
T { name: s.clone() }
|
|
}
|
|
fn mamad(s: String) -> T {
|
|
parse(&s)
|
|
}
|
|
fn main() {
|
|
let mut buffer = String::new();
|
|
let stdin = io::stdin();
|
|
stdin.read_line(&mut buffer).unwrap();
|
|
let t = mamad(buffer);
|
|
{
|
|
::std::io::_print(::core::fmt::Arguments::new_v1_formatted(
|
|
&["", "\n"],
|
|
&[::core::fmt::ArgumentV1::new_debug(&t)],
|
|
&[::core::fmt::rt::v1::Argument {
|
|
position: 0usize,
|
|
format: ::core::fmt::rt::v1::FormatSpec {
|
|
fill: ' ',
|
|
align: ::core::fmt::rt::v1::Alignment::Unknown,
|
|
flags: 4u32,
|
|
precision: ::core::fmt::rt::v1::Count::Implied,
|
|
width: ::core::fmt::rt::v1::Count::Implied,
|
|
},
|
|
}],
|
|
unsafe { ::core::fmt::UnsafeArg::new() },
|
|
));
|
|
};
|
|
}
|