diff options
Diffstat (limited to 'tests/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs')
-rw-r--r-- | tests/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs b/tests/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs new file mode 100644 index 000000000..505e7b84b --- /dev/null +++ b/tests/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs @@ -0,0 +1,19 @@ +// check-pass +#![allow(dead_code)] +// pretty-expanded FIXME #23616 + +/* + +#8171 Self is not recognised as implementing kinds in default method implementations + +*/ + +fn require_send<T: Send>(_: T){} + +trait TragicallySelfIsNotSend: Send + Sized { + fn x(self) { + require_send(self); + } +} + +pub fn main(){} |