Update marker.rs · patricklam/verify-rust-std@72e79f0

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 72e79f0

authored

Update marker.rs

1 parent 870dfed commit 72e79f0

File tree

1 file changed

+

2

-

1

lines changed

1 file changed

+

2

-

1

lines changed

Lines changed: 2 additions & 1 deletion

Original file line numberDiff line numberDiff line change

@@ -292,9 +292,10 @@ marker_impls! {

292292

/// bound on type parameters:

293293

///

294294

/// ```

295+

/// #[derive(Clone)]

295296

/// struct MyStruct<T>;

296297

///

297-

/// impl<T: Copy> Copy for MyStruct<T> { }

298+

/// impl<T: Copy> Copy for MyStruct<T> { }

298299

/// ```

299300

///

300301

/// This isn't always desired. For example, shared references (`&T`) can be copied regardless of

0 commit comments

Comments

 (0)