The lens can NOT be attached to a DSLR. The EF lenses are backwards compatible with the new RF mount, but the other way round is not possible. This is simply due to physics, the RF lenses are designed for a smaller distance to the sensor which only the RF mount offers. EF lenses can be connected to the EOS R with an adapter, for example, because this distance (longer with EF than with RF) can be guaranteed by means of an adapter/spacer.