How can I programmatically refer to attributes of another Snakemake rule? What do I need to replace <whatever is in test1's input> with, for this to work?
rule test1:
input: 'a.txt'
rule test2:
output: <whatever is in test1's input> <---- ?
shell: 'touch {output}'