1
Fork 0

rustdoc: fix comments in test

This commit is contained in:
Michael Howell 2023-03-13 23:03:53 -07:00 committed by GitHub
parent 86179c4549
commit bfb66eb4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#![feature(doc_notable_trait)]
// Notable traits SHOULD be shown when the `impl` has a generic type and the
// return type has a concrete type.
// Notable traits SHOULD NOT be shown when the `impl` has a concrete type and
// the return type has a generic type.
pub mod generic_return {
pub struct Wrapper<T>(T);
@ -17,8 +17,8 @@ pub mod generic_return {
}
}
// Notable traits SHOULD NOT be shown when the `impl` has a concrete type and
// the return type has a generic type.
// Notable traits SHOULD be shown when the `impl` has a generic type and the
// return type has a concrete type.
pub mod generic_impl {
pub struct Wrapper<T>(T);