Tough_Crowd/tests/syntax/rust/valid_comments.rs

47 lines
548 B
Rust
Raw Normal View History

pub fn comments() -> () {
// line comment
// line comment
// line comment
//
//
//
//
// line comment // test
/* line comment */
/* line comment */
/* line comment */
/* block
comment
*/
/*
block
comment
*/
/**
block
comment
*/
/**/
/* */
/***/
// Not supported yet:
//
// Recursive block comment:
// - This is valid: /* line /* test */ comment */
// - This is invalid: /* line /* test comment */
}